Commit 13cda148 authored by Certyfikowany Przewracacz Hulajnóg Elektrycznych's avatar Certyfikowany Przewracacz Hulajnóg Elektrycznych
Browse files

Update pdflatex.py: line 87, without it really weird stuff happens with...

Update pdflatex.py: line 87, without it really weird stuff happens with text/formulas made by pdflatex, sometimes one has to press "Apply" um-teen number of times in order to get the correct output. I suspect there is something wrong with the way tmp files are handled. On the other hand, line 46 should close the stream correctly. If you fail to reproduce this behavior, ignore this change. Thanks to Mc and doctormo from inkscape chat for insights.
parent ada6ab90
......@@ -84,6 +84,7 @@ class PdfLatex(TempDirMixin, inkex.GenerateExtension):
stream.write("\n\\begin{document}\n")
stream.write(self.options.formule)
stream.write("\n\\end{document}\n")
stream.flush()
if __name__ == '__main__':
PdfLatex().run()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment