Skip to content
Snippets Groups Projects
Commit 9b20f8e8 authored by root's avatar root
Browse files

Fix bug in PDF on server (issue

parent 73725e4a
No related branches found
No related tags found
No related merge requests found
......@@ -106,9 +106,10 @@ TEX_HEADER_BOX_ROW_B = """
def generate_pdf(tex, filename):
"""Generate a PDF by LaTeX code"""
print(tex)
# Read LaTeX file
tex_file = open(os.path.join(BASE_DIR, "latex", filename + ".tex"), "w")
tex_file = open(os.path.join(BASE_DIR, "latex", filename + ".tex"), "w", encoding="utf8")
tex_file.write(tex)
tex_file.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment