Skip to content

Commit

Permalink
add necessary '\n' in conf file
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaohuba committed Jun 29, 2024
1 parent 97c9570 commit 6eceb67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down

0 comments on commit 6eceb67

Please sign in to comment.