1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 22:08:20 +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

@@ -207,7 +207,7 @@ class ConfigGenerator:
lines.append(f' {path_to_arg(path)} = {repr(parse_value(data["value"], data=data))}{option}')
visited_path.add(path)
with open(filepath_code(), 'w') as f:
with open(filepath_code(), 'w', encoding='utf-8') as f:
for text in lines:
f.write(text + '\n')