mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +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 @@ def reader(lnum=[lnum]):
 | 
				
			||||||
            i = lnum - index
 | 
					            i = lnum - index
 | 
				
			||||||
            for line in lines:
 | 
					            for line in lines:
 | 
				
			||||||
                num = small(' ' * (5-len(str(i))) + str(i)) + ' '
 | 
					                num = small(' ' * (5-len(str(i))) + str(i)) + ' '
 | 
				
			||||||
                line = '<tt>%s%s</tt>' % (num, pydoc.html.preformat(line))
 | 
					 | 
				
			||||||
                if i in highlight:
 | 
					                if i in highlight:
 | 
				
			||||||
 | 
					                    line = '<tt>=>%s%s</tt>' % (num, pydoc.html.preformat(line))
 | 
				
			||||||
                    rows.append('<tr><td bgcolor="#ffccee">%s</td></tr>' % line)
 | 
					                    rows.append('<tr><td bgcolor="#ffccee">%s</td></tr>' % line)
 | 
				
			||||||
                else:
 | 
					                else:
 | 
				
			||||||
 | 
					                    line = '<tt>  %s%s</tt>' % (num, pydoc.html.preformat(line))
 | 
				
			||||||
                    rows.append('<tr><td>%s</td></tr>' % grey(line))
 | 
					                    rows.append('<tr><td>%s</td></tr>' % grey(line))
 | 
				
			||||||
                i += 1
 | 
					                i += 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue