mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
audit: pin LF newlines in the generated status writes
Path.write_text opens with newline=None, so on Windows a regeneration would translate the tracked LF files to CRLF and show a spurious diff. Both write sites now pass newline="\n", which leaves the bytes identical on macOS and Linux. Signed-off-by: izdat-sl4w <76667566+izdat-sl4w@users.noreply.github.com>
This commit is contained in:
1 parent
c91036f879
commit
8049c36f51
2 files changed
+3
-3
No files matched your search
@@ -30,7 +30,7 @@ def replace_block(path, name, body, check):
|
||||
if check:
|
||||
print(f"{path}: status table differs from docs/status.toml", file=sys.stderr)
|
||||
return False
|
||||
path.write_text(updated, encoding="utf-8")
|
||||
path.write_text(updated, encoding="utf-8", newline="\n")
|
||||
return True
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ def check_asset(path, svg, check):
|
||||
if check:
|
||||
print(f"{path}: progress graphic differs from docs/status.toml", file=sys.stderr)
|
||||
return False
|
||||
path.write_text(svg, encoding="utf-8")
|
||||
path.write_text(svg, encoding="utf-8", newline="\n")
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user