def addText(self, text):
        if (text):
            if ((0 < len(self.children)) and (type(self.children[-1]) is MarkupText)):
                self.children[-1].text += unicode(text)
            else:
                self.children.append(MarkupText(unicode(text)))
dataset/ETHPy150Open tabatkins/bikeshed/bikeshed/widlparser/widlparser/markup.py/MarkupGenerator.addText/original