From 72c53513f8bdab5506ffa972c1bf6f8573f097d7 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 31 Mar 2024 03:57:59 +0200 Subject: [PATCH] WebHost: fix /check creating broken yaml files if files don't end with a newline (#3063) --- 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: