def fix_table_splits(table_lines):
    """
    Adds an escape "\" to lines where text has been split incorrectly
    (prematurely).
    """
    new_table = []
    for line in table_lines:
        if line.startswith('+'):
            new_line = ''
            line_type = line[1]
            for i, char in enumerate(line):
                if char == '+' and line[i + 1] == line_type:
                    char = '+' + line_type
                new_line = new_line + char
            new_table.append(new_line)
        else:
            new_line = ''
            for i, char in enumerate(line):
                if char == ' ' and line[i + 1] == '|':
                    if line[i - 1] != ' ':
                        char = '\ '
                    else:
                        char = '  '
                new_line = new_line + char
            new_table.append(new_line)
    return new_table