Merge pull request #397 from fwcd/master

Made sure to always encode written TeX files as UTF-8
This commit is contained in:
Grant Sanderson
2019-02-12 09:40:20 -08:00
committed by GitHub

View File

@ -32,7 +32,7 @@ def generate_tex_file(expression, template_tex_file_body):
new_body = template_tex_file_body.replace(
TEX_TEXT_TO_REPLACE, expression
)
with open(result, "w") as outfile:
with open(result, "w", encoding="utf-8") as outfile:
outfile.write(new_body)
return result