✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
GNU General Public License v3.0
664
stars
81
forks
source link
[BUG] [Formatter] Conditional HTML enclosing tags leads to added indentation #840
Open
PetrDlouhy opened 2 months ago
System Info
python --version
): Python 3.11.6djlint --version
): version 1.34.1Issue
If I want to add/not add enclosing HTML tag in my template I do it like this:
When I run
djlint --reformat
, I got this result:Which is the worst possibility what could have happened. It will introduce new indentation in the document.
My
pyproject.toml
: