Skip to content

Commit

Permalink
WebHost: fix /check creating broken yaml files if files don't end wit…
Browse files Browse the repository at this point in the history
…h a newline (ArchipelagoMW#3063)
  • Loading branch information
Berserker66 authored Mar 31, 2024
1 parent b7ac6a4 commit 72c5351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebHostLib/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def check():
results, _ = roll_options(options)
if len(options) > 1:
# offer combined file back
combined_yaml = "---\n".join(f"# original filename: {file_name}\n{file_content.decode('utf-8-sig')}"
combined_yaml = "\n---\n".join(f"# original filename: {file_name}\n{file_content.decode('utf-8-sig')}"
for file_name, file_content in options.items())
combined_yaml = base64.b64encode(combined_yaml.encode("utf-8-sig")).decode()
else:
Expand Down

0 comments on commit 72c5351

Please sign in to comment.