#NEWLINE# def anchor_to_text( attrs ) : #NEWLINE# #INDENT# text = attrs . get ( 'href' ) . strip ( ) #NEWLINE# title = attrs . get ( 'title' , attrs . get ( 'text' , '' ) ) . strip ( ) #NEWLINE# if ( ( text == text ) or ( not title ) ) : #NEWLINE# #INDENT# return text #NEWLINE# #UNINDENT# return ( '(%s) %s' % ( title , text ) )