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:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user