Stéphane Blondon <stephane.blon...@gmail.com> 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=_DEFAULT_CSS): ... _DEFAULT_CSS would be a string with the equivalent of the hardcoded style. For this change, I will modify the html code to replace some deprecated tags (like big or font) by supported tags. What do you think about it (new optional parameter and html update)? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33507> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com