djLint
djLint copied to clipboard
[BUG] [Formatter] inline conditions cause problems
- [x] I'm on the latest version of djLint
- [x] I've searched the issues
- [ ] I've read the docs
System Info
- OS: e.g. ubuntu 20.04
- Python Version (
python --version) - djLint Version (
djlint --version) - template language: e.g. mustache
Issue
If we have an else statement after an inlined if + else statement, the else statement would be matched with the if statement instead of the outer if statement.
Might be fixable together with #182
How To Reproduce
Thanks for opening your first issue here!

Hey @Zackhardtoname can you give a code snippet?