mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-14 08:13:09 +00:00
naturalized line endings when beginning formatting
This commit is contained in:
parent
64eb26be3f
commit
70e4220c93
1 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,8 @@ def reformat_file(config: Config, this_file: Path) -> dict:
|
|||
"""Reformat html file."""
|
||||
rawcode = this_file.read_bytes().decode("utf8")
|
||||
|
||||
compressed = compress_html(rawcode, config)
|
||||
# naturalize the line breaks
|
||||
compressed = compress_html(("\n").join(rawcode.splitlines()), config)
|
||||
|
||||
expanded = expand_html(compressed, config)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue