mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 23:57:23 +08:00
Fix: Linebreaks in generated files
This commit is contained in:
@@ -36,7 +36,7 @@ def write_file(file, data):
|
||||
else:
|
||||
lines.append(str(name))
|
||||
|
||||
with open(file, 'w', encoding='utf-8') as f:
|
||||
with open(file, 'w', encoding='utf-8', newline='') as f:
|
||||
f.write('\n'.join(lines))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user