mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix protobuf formatting adding carriage returns on Windows
This commit is contained in:
parent
8c6d0e6229
commit
4d471612ec
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ for path in sys.argv[2:]:
|
|||
).decode("utf-8")
|
||||
if orig != new:
|
||||
if want_fix:
|
||||
with open(os.path.join(workspace, path), "w") as file:
|
||||
with open(os.path.join(workspace, path), "w", newline="\n") as file:
|
||||
file.write(new)
|
||||
print("fixed", path)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue