'Flush data that is left in the buffer.'

def flush(self):

    for data in self.buffer:
        self.output_width += data.output(self.output, self.output_width)
    self.buffer.clear()
    self.buffer_width = 0
