From 6eceb67c9f07ffdad6a212ba01d9de0ba62c93f9 Mon Sep 17 00:00:00 2001 From: Xiaohuba <175194786@qq.com> Date: Sat, 29 Jun 2024 18:30:51 +0800 Subject: [PATCH] add necessary '\n' in conf file --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 5c1a837..0776d40 100644 --- a/main.py +++ b/main.py @@ -157,7 +157,7 @@ shutil.copy2(statement_path, main_path) except Exception as exp: print(f"ERROR: Failed to attach statement!\nException is {exp}") - conf += f"use_pdf_statement on" + conf += f"use_pdf_statement on\n" if attach_sol: sol_path = "solution.pdf" @@ -172,7 +172,7 @@ shutil.copy2(sol_path, main_path) except Exception as exp: print(f"ERROR: Failed to attach statement!\nException is {exp}") - conf += f"show_solution on" + conf += f"show_solution on\n" conf += f"use_builtin_judger on\n" if task["taskType"] != 0: