#NEWLINE# def get_target( p , name ) : #NEWLINE# #INDENT# ( before , before_tag ) = p . get_next ( name , '>' ) #NEWLINE# if ( not before ) : #NEWLINE# #INDENT# return ( None , '>' ) #NEWLINE# #UNINDENT# ( next , next_tag ) = p . get_next ( name ) #NEWLINE# if ( not next ) : #NEWLINE# #INDENT# return ( None , '<' ) #NEWLINE# #UNINDENT# return ( next . v , '<' )