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
Line breaks in literal strings fail to parse #541
Comments
The stack trace from the exception is:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dotliquid version
2.2.692
Expected behavior
The following template should parse:
mytemplate.liquid
Actual behavior
Steps to reproduce the Problem (you can add files)
The following PowerShell sample fails to parse due to the literal line breaks:
whereas this one works fine without the literal line break:
Additional Info
It seems that Liquid doesn't have any escape sequences for strings (e.g. "\n" for new line) so they have to be represented verbatim in strings - for line breaks this means actually putting a line break in the source code per above. Other parsers appear to support this - see:
And this stackoverflow answer suggests the same thing:
The text was updated successfully, but these errors were encountered: