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

[Bug] Issue with parsing {%- endraw %} #9

Open
dturn opened this issue Sep 26, 2022 · 1 comment
Open

[Bug] Issue with parsing {%- endraw %} #9

dturn opened this issue Sep 26, 2022 · 1 comment

Comments

@dturn
Copy link

dturn commented Sep 26, 2022

The following file isn't parsable:

{%- raw -%}
123
{%- endraw -%}

The parser gives this error:

Unable to parse statement "raw": Unexpected EOF, expected tag endraw. (Line: 0 Col: 0, near "Unable to find raw closing statement"

But this file is:

{%- raw -%}
123
{% endraw -%}

I'm not sure why {% endraw -%} works but {%- endraw -%} doesn't. But figured I should open a bug report in case its an easy fix to somoene who knows the source code..

@NikolaLohinski
Copy link

Fixed in NikolaLohinski/gonja@891f255

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

No branches or pull requests

2 participants