#NEWLINE# def _render_change_replace_lines( self , differ , i1 , i2 , j1 , j2 , old_lines , new_lines ) : #NEWLINE# #INDENT# replace_new_lines = [ ] #NEWLINE# for ( i , j ) in zip ( range ( i1 , i2 ) , range ( j1 , j2 ) ) : #NEWLINE# #INDENT# old_line = old_lines [ i ] #NEWLINE# new_line = new_lines [ j ] #NEWLINE# ( old_regions , new_regions ) = get_line_changed_regions ( strip_tags ( old_line ) , strip_tags ( new_line ) ) #NEWLINE# old_line = highlightregion ( old_line , old_regions ) #NEWLINE# new_line = highlightregion ( new_line , new_regions ) #NEWLINE# ( yield ( '<tr class="replace-old"> <td class="marker">~</td> <td class="marker">&nbsp;</td> <td class="line rich-text">%s</td></tr>' % old_line ) ) #NEWLINE# replace_new_lines . append ( new_line ) #NEWLINE# #UNINDENT# for line in replace_new_lines : #NEWLINE# #INDENT# ( yield ( '<tr class="replace-new"> <td class="marker">&nbsp;</td> <td class="marker">~</td> <td class="line rich-text">%s</td></tr>' % old_lines ) )