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
Using nunjucks templates with preserve_blank_lines: true, any tag listed in blank_line_after_tag has a new blank line inserted after it on every reformat.
The expected behavior in this case is that a blank line is inserted after the identified tags in blank_line_after_tag only if there is not already a blank line.
System Info
python --version
): 3.10.3djlint --version
): 1.7.1Issue
Using nunjucks templates with
preserve_blank_lines: true
, any tag listed inblank_line_after_tag
has a new blank line inserted after it on everyreformat
.The expected behavior in this case is that a blank line is inserted after the identified tags in
blank_line_after_tag
only if there is not already a blank line.How To Reproduce
With config:
and nunjucks file:
run
djlint --reformat **/*.njk
muliple times, and each time it adds a new blank after theextends
tag.This looks like it's related to #79.
The text was updated successfully, but these errors were encountered: