[issue10716] Modernize pydoc to use CSS

Ron Adam report at bugs.python.org
Wed Dec 29 18:12:19 CET 2010


Ron Adam <ron_adam at users.sourceforge.net> added the comment:

The HtmlDoc class has methods that take colors. Can this be changed or does it need to be depreciated first? 

    def heading(self, title, fgcol, bgcol, extras=''):
        """Format a page heading."""
        return '''
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="%s">
<td valign=bottom>&nbsp;<br>
<font color="%s" face="helvetica, arial">&nbsp;<br>%s</font></td
><td align=right valign=bottom
><font color="%s" face="helvetica, arial">%s</font></td></tr></table>
    ''' % (bgcol, fgcol, title, fgcol, extras or '&nbsp;')

For the interactive server, I can override these methods with no problem, but the generated docs won't benefit from this until the HtmlDoc class is replaced.  Any suggestions?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10716>
_______________________________________


More information about the Python-bugs-list mailing list