You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This caught me by surprise. Explicitly written whitespace escape characters in triple-quoted strings are treated no differently than the actual leading whitespace. Given its implementation as a macro, I can see why this is currently unavoidable, but it is very surprising:
It looks like this case behaves as you'd expect: common leading whitespace is stripped, but the extra space before the b survives. But writing a tab instead of a space:
julia> """
a
\tb
"""
"a\n b\n"
gives 8 spaces instead of the tab character. Doesn't seem right.
This caught me by surprise. Explicitly written whitespace escape characters in triple-quoted strings are treated no differently than the actual leading whitespace. Given its implementation as a macro, I can see why this is currently unavoidable, but it is very surprising:
Or a real example — I had to protect the tab within an interpolation.
The text was updated successfully, but these errors were encountered: