Merge pull request #1165 from fabi321/fix-line-end

Fixed platform specific behaviour in format.py
This commit is contained in:
Hans5958 2022-04-17 14:30:28 +07:00 committed by GitHub
commit 9b7baca08a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -464,7 +464,7 @@ def go(path):
print(f"{len(entries)} checked.")
with open(path, "w", encoding='UTF-8') as f2:
with open(path, "w", encoding='utf-8', newline='\n') as f2:
f2.write(per_line_entries(entries))
print("Writing completed. All done.")