Closed ghamerly closed 4 years ago
Commit 2ccd713 differentiates between python2 and python3 (as a proxy for the version of plasTeX, which does not seem to advertise its version as far as I can see). For py2, we retain the use of cgi.escape()
; for py3 we do not. I've tested this on a few problems.
Commit e94d3a6 fixes an unrelated bug I found; python3 does not have the file()
command.
Merging as these changes are essential for running properly under python3.
Fixes #162
cgi.escape() would cause "<" to become "
<
", which would then get rendered by plasTeX as "&lt;
". Removing cgi.escape() fixes the issue.One other change rolled into this commit is a necessary change to listingsutf8.py to read input files properly.