#NEWLINE# def set_text( self , node , parent ) : #NEWLINE# #INDENT# text = parent . text #NEWLINE# if ( ( parent == 'term' ) or ( parent == 'field_name' ) ) : #NEWLINE# #INDENT# text = ( '[b]%s[/b]' % text ) #NEWLINE# #UNINDENT# node . text = self . colorize ( text , parent ) #NEWLINE# node . bind ( on_ref_press = self . root . on_ref_press ) #NEWLINE# if self . text_have_anchor : #NEWLINE# #INDENT# self . root . add_anchors ( node ) #NEWLINE# #UNINDENT# self . text = '' #NEWLINE# self . text_have_anchor = False