Skip to content
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

SyntaxError: Unexpected token ILLEGAL with unicode in HTML template #736

Closed
joelanman opened this issue Apr 25, 2016 · 3 comments · Fixed by #1126
Closed

SyntaxError: Unexpected token ILLEGAL with unicode in HTML template #736

joelanman opened this issue Apr 25, 2016 · 3 comments · Fixed by #1126
Labels

Comments

@joelanman
Copy link

Not totally sure if this is a bug in Nunjucks or we're just using it wrong.

If the html template contains the unicode character 8232 (name: LINE SEPARATOR) then Nunjucks gives the error:

SyntaxError: Unexpected token ILLEGAL

@carljm
Copy link
Contributor

carljm commented Apr 25, 2016

That seems like a bug to me.

@carljm carljm added the bug label Apr 25, 2016
@zeakd
Copy link

zeakd commented Aug 19, 2016

I have same error. Sometime it works when I just cut and paste with out change.

@kevnk
Copy link

kevnk commented Dec 30, 2016

I found the same error with the character (highlighted in Pages.app) shown in the screenshot below. I'm not sure if this is the same character @joelanman is mentioning, but it was throwing the same error for nunjucks.

screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants