[issue33507] Improving the html rendered by cgitb.html

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: cgi/cgitb are deprecated as per PEP 594, so there won't be further enhancements to them. -- nosy: +iritkatriel resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33507] Improving the html rendered by cgitb.html

2018-06-20 Thread Stéphane Blondon
Stéphane Blondon added the comment: I added the optional parameter to cgitb.html() function and removed the hardcoded css from the html code. I think there are still several improvements to do: - add documentation for the new parameter of cgitb.html() - add the same parameter to cgitb.enable()

[issue33507] Improving the html rendered by cgitb.html

2018-05-18 Thread Stéphane Blondon
Stéphane Blondon added the comment: > Instead of hardcoding colors, would it be better to use CSS instead. I agree with you. The current source code contains hardcoded colors. I could add an optional parameter to change the css for the cgitb.html() function: def html(einfo, context=5, css=_DEF

[issue33507] Improving the html rendered by cgitb.html

2018-05-17 Thread STINNER Victor
STINNER Victor added the comment: It's difficult to discuss colors, maybe because I'm partially colorblind :-), each people has different taste. Instead of hardcoding colors, would it be better to use CSS instead. -- nosy: +vstinner ___ Python trac

[issue33507] Improving the html rendered by cgitb.html

2018-05-15 Thread Stéphane Blondon
Change by Stéphane Blondon : -- keywords: +patch pull_requests: +6529 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue33507] Improving the html rendered by cgitb.html

2018-05-14 Thread Stéphane Blondon
Stéphane Blondon added the comment: current.png is a screenshot of the html shown in a browser with 3.8 branch next.png is a screenshot of the modified cgitb.html() function. -- Added file: https://bugs.python.org/file47589/current.png ___ Python tra

[issue33507] Improving the html rendered by cgitb.html

2018-05-14 Thread Stéphane Blondon
New submission from Stéphane Blondon : cgitb.html() returns HTML code viewable in a browser. It would be nice to improve the rendering to have something more readable (increase space between each call, increase contrast for the source code) and more modern. You can see the difference in the a