'Return a contiguous block of text.
If `flush_left` is true, raise `UnexpectedIndentationError` if an
indented line is encountered before the text block ends (with a blank
line).'

def get_text_block(self, flush_left=0):

    try:
        block = self.input_lines.get_text_block(self.line_offset, flush_left)
        self.next_line((len(block) - 1))
        return block
    except UnexpectedIndentationError as error:
        (block, source, lineno) = error
        self.next_line((len(block) - 1))
        raise
