Tested on Xubuntu 20.04 with Idle version 3.8.5
On clicking "Export to HTML" and selecting a file name, an empty HTML file is created.
This is due to:
AttributeError: module 'cgi' has no attribute 'escape'
To fix the problem, change line 88:
import cgi
to
import html
and line 145 from
out.append(cgi.escape(content))
to
out.append(html.escape(content))
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you, you're correct. I can include the patch with attribution in
the github repo.
Best,
Roger
On 6/20/21 5:43 PM, Steve wrote:
Tested on Xubuntu 20.04 with Idle version 3.8.5
On clicking "Export to HTML" and selecting a file name, an empty HTML
file is created.
This is due to:
AttributeError: module 'cgi' has no attribute 'escape'
To fix the problem, change line 88:
import cgi
to
import html
and line 145 from
out.append(cgi.escape(content))
to
out.append(html.escape(content))
Tested on Xubuntu 20.04 with Idle version 3.8.5
On clicking "Export to HTML" and selecting a file name, an empty HTML file is created.
This is due to:
AttributeError: module 'cgi' has no attribute 'escape'
To fix the problem, change line 88:
import cgi
to
import html
and line 145 from
out.append(cgi.escape(content))
to
out.append(html.escape(content))
Hi Steve,
Thank you, you're correct. I can include the patch with attribution in
the github repo.
Best,
Roger
On 6/20/21 5:43 PM, Steve wrote: