Show More
@@ -143,7 +143,7 b" def latex_to_png_dvipng(s, wrap, color='Black', scale=1.0):" | |||
|
143 | 143 | dvifile = workdir.joinpath("tmp.dvi") |
|
144 | 144 | outfile = workdir.joinpath("tmp.png") |
|
145 | 145 | |
|
146 |
with tmpfile.open("w", encoding= |
|
|
146 | with tmpfile.open("w", encoding="utf8") as f: | |
|
147 | 147 | f.writelines(genelatex(s, wrap)) |
|
148 | 148 | |
|
149 | 149 | with open(os.devnull, 'wb') as devnull: |
General Comments 0
You need to be logged in to leave comments.
Login now