New issue
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
[BUG] [Formatter] django blocktranslate wrong indentation #493
Comments
Ha! My bad. It is the closing bracket after the end tag I got confused by the fact that I need to put all spaces in front of endblocktranslate manually as they are part of not formatted content. I guess in my case the most elegant solution is to put brackets into the translation itself and let blocktranslate start/end tags on separate lines. I'm not sure if having any content after end tag is in favor of djLint formatting strategy. Feel free to close. |
Putting simple space at the end of the line with |
Hmm, good issue. We can probably get it fixed. In v2, I think will not be an issue, but for now we can probably fix it up. |
@vasekch sorry for the delay on this :) I'm going to release an update that allows closing |
commit d667273 fixes this issue. |
🎉 This issue has been resolved in version 1.19.17 🎉 The release is available on: Your semantic-release bot 📦🚀 |
possible regression of #26
djlint, version 1.19.7
Issue
Something is wrong with blocktranslate formatting,
{% endblocktranslate %}
is not properly indented.Code example - desired state
Formatter output
The example uses complex version of blocktranslate, but result is the same even if I remove
count
/trimmed
args. Also wrapping content brackets(
,)
don't seem to play any role in this issue. see the commentCurrent workaround is to wrap all code in
djlint:off
.Thank you for djLint 💚!
The text was updated successfully, but these errors were encountered: