'Add literal text to the output.'

def text(self, obj):

    width = len(obj)
    if self.buffer:
        text = self.buffer[(-1)]
        if (not isinstance(text, Text)):
            text = Text()
            self.buffer.append(text)
        text.add(obj, width)
        self.buffer_width += width
        self._break_outer_groups()
    else:
        self.output.write(obj)
        self.output_width += width
