def sublist(full_list, index):
    """ returns a sub-list of contiguous non-emtpy lines starting at index """
    sub_list = []
    while index < len(full_list):
        line = full_list[index].strip()
        if line != "":
            sub_list.append(line)
            index += 1
        else: break
    return sub_list