{% call a('b') %}
<div>
blah blah
</div>
{% endcall %} {# comment #}
The above jinja code causes
jinjalint test.html
test.html:1:0: Expected at most one space at the beginning of the text node, got 2 spaces
It seems it is because there are two spaces at the {# comment #} line. Using 1 space fix it.
I'm not sure whether using 1 space or 2 spaces is standard, however the error message is unclear and the line number is misleading.
The above jinja code causes
It seems it is because there are two spaces at the {# comment #} line. Using 1 space fix it.
I'm not sure whether using 1 space or 2 spaces is standard, however the error message is unclear and the line number is misleading.