Skip to content

Some characters break Nunjucks #126

@devoidfury

Description

@devoidfury

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions