From 2126ad6835cddd4df5a2db433c1598b2396e6bce Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 31 Mar 2024 01:57:19 +0100 Subject: [PATCH] WebHost: fix /check creating broken yaml files if files don't end with a newline --- WebHostLib/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebHostLib/check.py b/WebHostLib/check.py index e739dda02d79..da6bfe861a6c 100644 --- a/WebHostLib/check.py +++ b/WebHostLib/check.py @@ -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: