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:
{% block script %}
<script>
let arrow = "-->";
let on_the_move = 1;
let just_following_the_sign = 2;
</script>
{% endblock %}
Run djlint --reformat djlint_error.html and the lines with on_the_move and just_following_the_sign get even more indented.
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.