mirror of
https://github.com/python/cpython.git
synced 2026-05-18 10:24:42 -04:00
#602893: add indicator for current line in cgitb that doesnt rely on styling alone.
This commit is contained in:
+2
-1
@@ -141,10 +141,11 @@ function calls leading up to the error, in the order they occurred.</p>'''
|
||||
i = lnum - index
|
||||
for line in lines:
|
||||
num = small(' ' * (5-len(str(i))) + str(i)) + ' '
|
||||
line = '<tt>%s%s</tt>' % (num, pydoc.html.preformat(line))
|
||||
if i in highlight:
|
||||
line = '<tt>=>%s%s</tt>' % (num, pydoc.html.preformat(line))
|
||||
rows.append('<tr><td bgcolor="#ffccee">%s</td></tr>' % line)
|
||||
else:
|
||||
line = '<tt> %s%s</tt>' % (num, pydoc.html.preformat(line))
|
||||
rows.append('<tr><td>%s</td></tr>' % grey(line))
|
||||
i += 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user