You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is JavaScript in a Django template block that contains "-->" in a string or comment, all JavaScript lines below the line that contains "-->" are indented always one more level when running djlint --reformat on the file.
How To Reproduce
Create file djlint_error.html with the following contents:
# [1.33.0](v1.32.1...v1.33.0) (2023-09-18)
### Bug Fixes
* **formatter:** fixed extra breaks added around html tags inside template tags ([6091ffb](6091ffb)), closes [#742](#742)
* **formatter:** fixed extra indend in script tags ([9d04d51](9d04d51)), closes [#733](#733)
* **formatter:** fixed formatting on functions that used python keywords as the param name ([183a7c0](183a7c0)), closes [#756](#756)
* **h033:** fix rull to not match data-action ([f6881e0](f6881e0))
* **linter:** fixed false positive on DJ018 ([78d81dc](78d81dc)), closes [#755](#755)
### Features
* **formatter:** added support for nunjucks async loop tags ([5a32bb3](5a32bb3))
System Info
Issue
If there is JavaScript in a Django template block that contains "-->" in a string or comment, all JavaScript lines below the line that contains "-->" are indented always one more level when running
djlint --reformat
on the file.How To Reproduce
Create file
djlint_error.html
with the following contents:Run
djlint --reformat djlint_error.html
and the lines withon_the_move
andjust_following_the_sign
get even more indented.The text was updated successfully, but these errors were encountered: