#NEWLINE# def visitNode_pre( self , node ) : #NEWLINE# #INDENT# buf = StringIO ( ) #NEWLINE# getLatexText ( node , buf . write , entities = entities ) #NEWLINE# data = buf . getvalue ( ) #NEWLINE# data = text . removeLeadingTrailingBlanks ( data ) #NEWLINE# lines = data . split ( '\n' ) #NEWLINE# self . fontStack . append ( ( 'typewriter' , 4 ) ) #NEWLINE# self . writer ( ( ( '%' + self . fontName ( ) ) + '\n' ) ) #NEWLINE# for line in lines : #NEWLINE# #INDENT# self . writer ( ( ( ' ' + line ) + '\n' ) ) #NEWLINE# #UNINDENT# del self . fontStack [ ( - 1 ) ] #NEWLINE# self . writer ( ( ( '%' + self . fontName ( ) ) + '\n' ) )