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
When using block comment for more than 2 lines, ident is added to the block content with every reformat. I'd like {% comment %} to not change ident of inner content at all (disable formatting, like djlint:off), because comments in general may contain invalid code (e.g. variant of opening html tag and such).
How To Reproduce
This is simple example, where I provide formatted code according to my liking, but reformat is making unwanted indent and is not being idempotent (it changes the file with every re-run - see bellow).
System Info
Issue
When using block comment for more than 2 lines, ident is added to the block content with every reformat. I'd like
{% comment %}
to not change ident of inner content at all (disable formatting, like djlint:off), because comments in general may contain invalid code (e.g. variant of opening html tag and such).How To Reproduce
This is simple example, where I provide formatted code according to my liking, but reformat is making unwanted indent and is not being idempotent (it changes the file with every re-run - see bellow).
After running reformat for the first time:
Running reformat the second time:
This has similar symptoms as djlint:on/off issue in #166 (comment).
Just for fun I've put djlint:on/off around comment/endcomment and it has no effect :( I'll log it as separate issue.
The text was updated successfully, but these errors were encountered: