mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
#602893: add indicator for current line in cgitb that doesnt rely on styling alone.
This commit is contained in:
parent
453d953f3e
commit
7ab5eb91b7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue