-
Notifications
You must be signed in to change notification settings - Fork 640
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
Some characters break Nunjucks #126
Some characters break Nunjucks #126
Comments
Oh, that's not good. Sounds like you have a test case; can you attach a template that this happens with? Once we have that I'm sure we can track it down. |
In the original issue text I had listed the character surrounded by angle brackets, but github seems to have stripped it out, sorry I didn't notice. U+2028 |
I think I remember fixing this bug in another one, please reopen if it still exists |
I am still having this issue with the U+2028 Character breaking the build :( I am using gulp-nunjucks-html @ 2.0.0 |
I'm using gulp-nunjucks-render 2.2.2 and I get this error. The copy throwing error is below. There seems to be a character after dash at the end of sentence that breaks nunjucks. Beim Zugriff auf unser Internetangebot erfassen wir folgende Daten in einer Protokolldatei: - |
I've confirmed this issue. Re-opening. |
A U+2028 character (there may be others) in a template will cause nunjucks to throw "SyntaxError: Unexpected token ILLEGAL". Sometimes these sneaky beasts will work their way into copy.
I understand if they cause an issue and throw or warn, but it should be handled better.
Tested on 0.1.10 and 0.1.9, broken in both.
EDIT: fixed character above; error happens regardless of where it is in the template.
The text was updated successfully, but these errors were encountered: