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
Formatting JavaScript or CSS produces indentation on otherwise blank lines, even when js-beautify indent_empty_lines is false.
How To Reproduce
With demo.html:
<html><head><style>
body {}
div {}
</style></head><script>leta;letb;</script></html>
Running
pdm run djlint --check --format-js --format-css demo.html
should make no changes, but instead produces:
demo.html
───────────────────────────────────────────────────────────────────────────────
@@ -2,13 +2,13 @@
<head>
<style>
body {}
-+
div {}
</style>
</head>
<script>
let a;
-+
let b;
</script>
</html>
1 file would be updated.
The text was updated successfully, but these errors were encountered:
System Info
Issue
Formatting JavaScript or CSS produces indentation on otherwise blank lines, even when js-beautify
indent_empty_lines
is false.How To Reproduce
With
demo.html
:Running
should make no changes, but instead produces:
The text was updated successfully, but these errors were encountered: