gonja icon indicating copy to clipboard operation
gonja copied to clipboard

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

Open dturn opened this issue 2 years ago • 1 comments

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..

dturn avatar Sep 26 '22 20:09 dturn

Fixed in https://github.com/NikolaLohinski/gonja/commit/891f255b57d966e39376d5113c0a7c9d4d495216

NikolaLohinski avatar Mar 27 '23 06:03 NikolaLohinski