-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Trailing new lines are added to literal strings #406
Comments
@nervo |
@goccy sorry, maybe there is a misunderstanding :) The issue is that there is currently two new lines :) |
@nervo I see, so unnecessary newline characters are being added. That does seem to be the case. Thank you. |
Even if they are not part of a literal string, trailing newlines are systematically added to the string
In this siituation, the
bar
value will be"bar\n\n"
instead of"bar\n"
.Note that this also applies with strip sign
|-
Here is a simple reproduction case:
And a related playground: https://go.dev/play/p/XG6oCnbwwiz
The text was updated successfully, but these errors were encountered: