def split_text_in_three(text, start_line, start_chr, end_line, end_chr):
    """Split the text in three using 2 (line, column) control points"""
    lines = text.split('\n')
    before = '\n'.join(lines[:start_line] + [lines[start_line][:start_chr]])
    if start_line == end_line:
        excerpt = lines[start_line][start_chr:end_chr]
    else:
        excerpt = '\n'.join([lines[start_line][start_chr:]] + ['\n'.join(
            lines[start_line + 1:end_line])] + [lines[end_line][:end_chr]])
    after = '\n'.join([lines[end_line][end_chr:]] + lines[end_line + 1:])
    return before, excerpt, after
