Skip to content

Jinjalint error on comment element spacing. #21

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions