-
Notifications
You must be signed in to change notification settings - Fork 76
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
Hamlet chokes at '\r' inside interpolation on Windows. #192
Comments
This happens on non-Windows too, newlines are not supported inside an interpolation. |
@snoyberg If newlines are not supported in interpolations, is there any other way to handle long interpolations? I have a function that should be supplied with multiple file paths. I want the designer to select CSS imports from within the template, without any changes to Haskell code. The functionality is already there so
works fine but is terrible on small screens. So what I want to do is sth. like this:
I did not open a new issue, because I think this is just another example for the OP's problem, but am happy to do so, if you disagree. |
In theory you could use a |
@snoyberg Ok, thank you very much. I didn't think of that option. This trades the line-width problem for a nesting one. So I'll keep this as an option in mind, despite living with the oversized lines in the current case. Maybe this could be seen as a rather low-priority feature request for multi-line variable interpolations. Nevertheless thanks to all contributors for creating this marvel of a templating engine :) |
The code
yields
unexpected '\r', expecting " " or "}"
on Windows. Changing source line endings doesn't help, because template code is still \r\n-ended.The text was updated successfully, but these errors were encountered: