def split_txt(what, l=375):
    """ split text into <l> sized portions """
    txtlist = []
    start = 0
    end = l
    length = len(what)
    for i in range(int(length / end) + 1):
        endword = what.find('\n', end)
        if not endword:
            endword = what.find(' ', end)
        if endword == -1:
            endword = start + l
        res = what[start:endword]
        if res:
            txtlist.append(res)
        start = endword
        end = start + l
    return txtlist
