'Append text, stripping newlines, producing nice LaTeX code.'

def append(self, text, newline='%\n'):

    lines = [((('        ' * self.indentation_level) + line) + newline) for line in text.splitlines(0)]
    self.body.append(''.join(lines))
