You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parser is quite strict and will fail on templates that have mismatched start and end tags, which is usually what you want, but makes for cryptic error messages.
Describe the bug
I tried curlylint on our set of Django templates, and it stumbled over some things I cannot really explain. One example is this template:
https://edugit.org/AlekSIS/official/AlekSIS-Core/-/blob/d579eec21675787347c7e7d4c2862d9d75030b0a/aleksis/core/templates/dynamic_preferences/sections.html
curlyprint complains:
It shows similar errors for other templates, but this is a very simple one.
Which terms did you search for in the documentation and issue tracker?
"parse", mainly.
Environment
I am not sure what Draft.js has to do with this, neither what relevance my browser has to do with it, as I run curlylint on the shell.
I use curlylint 0.12.0 from PyPI under Python 3.9 on Debian bullseye/sid.
Steps to reproduce
pip3 install curlylint
wget https://edugit.org/AlekSIS/official/AlekSIS-Core/-/raw/d579eec21675787347c7e7d4c2862d9d75030b0a/aleksis/core/templates/dynamic_preferences/sections.html
curlylint sections.html
Expected behavior
Template is lint-clean.
Actual behavior
curlylint throws above parse error.
Reproducible demo
The text was updated successfully, but these errors were encountered: