We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
python --version
djlint --version
If I want to add/not add enclosing HTML tag in my template I do it like this:
{% if enclose_in_dif %} <div> {% endif %} <h1>Test</h1> {% if enclose_in_dif %} </div> {% endif %}
When I run djlint --reformat, I got this result:
djlint --reformat
{% if enclose_in_dif %}<div>{% endif %} <h1>Test</h1> {% if enclose_in_dif %}</div>{% endif %}
Which is the worst possibility what could have happened. It will introduce new indentation in the document.
My pyproject.toml:
pyproject.toml
[tool.djlint] profile="django" custom_blocks="cache,scribble,experiment,recursetree,linebreakless,blocktrans,html2text" custom_html="source,picture,img,defs,symbol,path"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
:The text was updated successfully, but these errors were encountered: