Author sblondon
Recipients sblondon, vstinner
Date 2018-05-18.14:44:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAOy+up4Pwze=Evajx_Pn_9chNG6d3aG+9=TRWnvdcLNKsXQCjw@mail.gmail.com>
In-reply-to <1526541196.05.0.682650639539.issue33507@psf.upfronthosting.co.za>
Content
> 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)?
History
Date User Action Args
2018-05-18 14:44:49sblondonsetrecipients: + sblondon, vstinner
2018-05-18 14:44:49sblondonlinkissue33507 messages
2018-05-18 14:44:49sblondoncreate