#NEWLINE# def visitTextTag( self , node ) : #NEWLINE# #INDENT# filtered = ( len ( node . filter_args . args ) > 0 ) #NEWLINE# if n : #NEWLINE# #INDENT# self . printer . writelines ( '__M_writer = context._push_writer()' , 'try:' ) #NEWLINE# #UNINDENT# for n in node . nodes : #NEWLINE# #INDENT# n . accept_visitor ( self ) #NEWLINE# #UNINDENT# if filtered : #NEWLINE# #INDENT# self . printer . writelines ( 'finally:' , '__M_buf, __M_writer = context._pop_buffer_and_writer()' , ( '__M_writer(%s)' % self . create_filter_callable ( node . filter_args . args , '__M_buf.getvalue()' , False ) ) , None )