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] Bad indentation #432
Comments
I tried to look into it : in both workaround cases, when processed in The faulty file skip this condition and end in the I don't know if the fix should be in |
Thanks! Yep, you find the problem line, in indent_html. |
Hi, |
Ok, thanks, no problem :) |
I loosened it up a bit, now it will check:
Thanks @tonial |
That was fast ! |
## [1.19.3](v1.19.2...v1.19.3) (2022-10-25) ### Bug Fixes * **formatter:** fixed poor formatting on long inline blocks ([62a8879](62a8879)), closes [#432](#432)
🎉 This issue has been resolved in version 1.19.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
System Info
Issue
Reformatting does work on
How To Reproduce
when using
djlint --reformat myfile.html
, the content becomesNB :
You can now use
it works correctlyspan
instead ofstrong
, it also works correctlyI was able to get around this issue with a breakline. The following file doesn't cause the indentation error.
The text was updated successfully, but these errors were encountered: