-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faulty padding with triple-quoted strings and empty lines #175
Comments
Wondering if we should ignore space-only lines for heredocs as well. It seems bad when invisible changes matter, not to mention many tools don't like trailing spaces. |
I.e.,
would equal to To explicitly indicate space-only lines, we can (already) use
↓↑
|
I wouldn't really change it much from the way CoffeeScript does it, and I don't like the (
would cause this error, whereas the following won't
and it should produce
|
That's certainly safer. I guess I'll open a separate issue for the trimming idea. |
There appears to be a problem with empty lines in triple-quoted strings:
(Note: 3 spaces in the empty line)
Produces the string
"foo\n \n bar"
This is similar for when you put
foo
on a seperate line. To fix this you'll have to either leave the empty line completely empty, or add an extra space to it. For some reason, less spaces in the empty line means more padding to the rest of the string - if this example had only one space in the empty line, it would produce 3 spaces in front ofbar
instead of 1.I should mention that CoffeeScript doesn't seem to have this issue.
The text was updated successfully, but these errors were encountered: