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
Jinja2 comments can be written as {# comment #} or {#- comment -#}, where the - is standard Jinja2 syntax for trimming whitespace. However, djLint flags {#- as a variable with extra whitespace. The closing -#} is accepted. Changing the opening to {# resolves the problem:
T001 27:3 Variables should be wrapped in a single whitespace. {#-
T001 30:3 Variables should be wrapped in a single whitespace. {#-
T001 499:23 Variables should be wrapped in a single whitespace. {#-
How To Reproduce
{#- This will be flagged -#}
{#- This will also be flagged #}
{# This is okay -#}
{# This is also okay. #}
The text was updated successfully, but these errors were encountered:
Thanks, I'll put out a fix for this that will not flag {#-. Unfortunately it will not catch items without a space as this is one of the ignored block patterns.
System Info
Issue
Jinja2 comments can be written as
{# comment #}
or{#- comment -#}
, where the-
is standard Jinja2 syntax for trimming whitespace. However, djLint flags{#-
as a variable with extra whitespace. The closing-#}
is accepted. Changing the opening to{#
resolves the problem:How To Reproduce
The text was updated successfully, but these errors were encountered: