I get incorrect indentations in {{ }} expression when formatting njk files with djlint.
The only workaround I have for now is keep preserve_leading_space to true but i actually want them to be formatted as well.
I also tried online version and got the same result.
Don't know is it something with my config or with djlint. Please help. Looks like this is the only solution for now to format nunjucks templates.
System Info
Issue
I get incorrect indentations in {{ }} expression when formatting njk files with djlint. The only workaround I have for now is keep preserve_leading_space to true but i actually want them to be formatted as well.
I also tried online version and got the same result.
Don't know is it something with my config or with djlint. Please help. Looks like this is the only solution for now to format nunjucks templates.
How To Reproduce
.djlintrc:
command:
djlint ./src --reformat --configuration .djlintrc
sample input:
output: