1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 01:38:21 +08:00

Fix: Linebreaks in generated files

This commit is contained in:
LmeSzinc
2022-04-23 12:18:53 +08:00
parent 3006c34cc8
commit 7c16b633e2
3 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ def poor_yaml_write(data, file, template_file=DEPLOY_TEMPLATE):
value = 'null'
text = re.sub(f'{key}:.*?\n', f'{key}: {value}\n', text)
with open(file, 'w', encoding='utf-8') as f:
with open(file, 'w', encoding='utf-8', newline='') as f:
f.write(text)