'Get the total text of all text children, joined with and ended with \''

def get_text(self):

    text = []
    for c in self.children:
        if (c.tag == 'text'):
            text.append(c.arg)
            if (not c.arg.endswith('\n')):
                text.append('\n')
    return ''.join(text)
