gonja
gonja copied to clipboard
[Bug] Issue with parsing {%- endraw %}
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..
Fixed in https://github.com/NikolaLohinski/gonja/commit/891f255b57d966e39376d5113c0a7c9d4d495216