'split a row of text into list of cells.'

def _split_row(self, row, border):

    if border:
        if row.startswith('|'):
            row = row[1:]
        if row.endswith('|'):
            row = row[:(-1)]
    return row.split('|')
