Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinjalint error on comment element spacing. #21

Open
xpoh434 opened this issue Nov 19, 2019 · 0 comments
Open

Jinjalint error on comment element spacing. #21

xpoh434 opened this issue Nov 19, 2019 · 0 comments

Comments

@xpoh434
Copy link

xpoh434 commented Nov 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant