#NEWLINE# def visit_Text( self , node ) : #NEWLINE# #INDENT# text = node . astext ( ) #NEWLINE# encoded = self . encode ( text ) #NEWLINE# if self . protect_literal_text : #NEWLINE# #INDENT# for token in self . words_and_spaces . findall ( text ) : #NEWLINE# #INDENT# if token . strip ( ) : #NEWLINE# #INDENT# if self . sollbruchstelle . search ( token ) : #NEWLINE# #INDENT# self . body . append ( ( '<span class="pre">%s</span>' % self . encode ( token ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . body . append ( self . encode ( token ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( token in ( ' ' , '\n' ) ) : #NEWLINE# #INDENT# self . body . append ( token ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( '\n' in token ) : #NEWLINE# #INDENT# token = token . split ( '\n' ) #NEWLINE# for t in token : #NEWLINE# #INDENT# assert ( t == ( ' ' * len ( t ) ) ) #NEWLINE# #UNINDENT# crs = ( '\n' * ( len ( token ) - 1 ) ) #NEWLINE# self . body . append ( ( crs + ( '\xa0' * len ( token [ ( - 1 ) ] ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . body . append ( ( ( '\xa0' * ( len ( token ) - 1 ) ) + ' ' ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# encoded = self . encode ( text ) #NEWLINE# if ( self . in_mailto and self . settings . cloak_email_addresses ) : #NEWLINE# #INDENT# encoded = self . cloak_email ( encoded ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# encoded = self . bulk_text_processor ( encoded ) #NEWLINE# #UNINDENT# self . body . append ( encoded )