jinjalint icon indicating copy to clipboard operation
jinjalint copied to clipboard

Jinjalint error on comment element spacing.

Open xpoh434 opened this issue 5 years ago • 0 comments

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

xpoh434 avatar Nov 19 '19 02:11 xpoh434