'Creates a Text Node whose contents are the current textBuffer.
Side effect: clears the text buffer.'

def _emitTextBuffer(self, odfElement):

    if (len(self.textBuffer) > 0):
        odfElement.addText(''.join(self.textBuffer))
    self.textBuffer = []
