#NEWLINE# def _get_right_tag( self , left_tag , left_index , block ) : #NEWLINE# #INDENT# for p in self . right_tag_patterns : #NEWLINE# #INDENT# tag = ( block % left_tag ) #NEWLINE# i = self . _recursive_tagfind ( ( '<%s' % left_tag ) , tag , left_index , block ) #NEWLINE# if ( i > 2 ) : #NEWLINE# #INDENT# return ( tag . lstrip ( '<' ) . rstrip ( '>' ) , i ) #NEWLINE# #UNINDENT# #UNINDENT# return ( block . rstrip ( ) [ ( - left_index ) : ( - 1 ) ] . lower ( ) , len ( block ) )