Skip to content
Snippets Groups Projects
Commit 7b81c5a2 authored by root's avatar root
Browse files

Fix bug in PDF on server (issue

parent fa974e4e
No related branches found
No related tags found
1 merge request!86Merge school-apps
# Generated by Django 2.1.7 on 2019-03-13 17:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('aub', '0010_merge_20190310_1915'),
('aub', '0010_auto_20190304_1404'),
]
operations = [
]
......@@ -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