#NEWLINE# def _add_text( self , text ) : #NEWLINE# #INDENT# '\n        If ``text`` is not empty, append a new Text node to the most recent\n        pending node, if there is any, or to the new nodes, if there are no\n        pending nodes.\n        ' #NEWLINE# if text : #NEWLINE# #INDENT# if self . pending_nodes : #NEWLINE# #INDENT# self . pending_nodes [ ( - 1 ) ] . append ( nodes . Text ( text ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . new_nodes . append ( nodes . Text ( text ) )