#NEWLINE# def insertText( self , data , insertBefore = None ) : #NEWLINE# #INDENT# text = TextNode ( self . soup . new_string ( data ) , self . soup ) #NEWLINE# if insertBefore : #NEWLINE# #INDENT# self . insertBefore ( text , insertBefore ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . appendChild ( data )