comparison roundup/cgi/cgitb.py @ 1947:0e19e99075e3

fix #white in cgitb
author Richard Jones <richard@users.sourceforge.net>
date Fri, 05 Dec 2003 03:38:47 +0000
parents cce5b4309005
children fc52d57c6c3e
comparison
equal deleted inserted replaced
1946:c538a64b94a7 1947:0e19e99075e3
1 # 1 #
2 # This module was written by Ka-Ping Yee, <ping@lfw.org>. 2 # This module was written by Ka-Ping Yee, <ping@lfw.org>.
3 # 3 #
4 # $Id: cgitb.py,v 1.8 2003-01-21 23:54:28 richard Exp $ 4 # $Id: cgitb.py,v 1.9 2003-12-05 03:36:34 richard Exp $
5 5
6 __doc__ = """ 6 __doc__ = """
7 Extended CGI traceback handler by Ka-Ping Yee, <ping@lfw.org>. 7 Extended CGI traceback handler by Ka-Ping Yee, <ping@lfw.org>.
8 """ 8 """
9 9
161 number = '&nbsp;' * (5-len(str(i))) + str(i) 161 number = '&nbsp;' * (5-len(str(i))) + str(i)
162 number = '<small><font color="#909090">%s</font></small>' % number 162 number = '<small><font color="#909090">%s</font></small>' % number
163 line = '<tt>%s&nbsp;%s</tt>' % (number, pydoc.html.preformat(line)) 163 line = '<tt>%s&nbsp;%s</tt>' % (number, pydoc.html.preformat(line))
164 if i == lnum: 164 if i == lnum:
165 line = ''' 165 line = '''
166 <table width="100%%" bgcolor="#white" cellspacing=0 cellpadding=0 border=0> 166 <table width="100%%" bgcolor="white" cellspacing=0 cellpadding=0 border=0>
167 <tr><td>%s</td></tr></table>''' % line 167 <tr><td>%s</td></tr></table>''' % line
168 excerpt.append('\n' + line) 168 excerpt.append('\n' + line)
169 if i == lnum: 169 if i == lnum:
170 excerpt.append(lvals) 170 excerpt.append(lvals)
171 i = i + 1 171 i = i + 1

Roundup Issue Tracker: http://roundup-tracker.org/