

def is_last_li(li, meta_data, current_numId):
    '\n    Determine if ``li`` is the last list item for a given list\n    '
    if (not is_li(li, meta_data)):
        return False
    w_namespace = get_namespace(li, 'w')
    next_el = li
    while True:
        if (next_el is None):
            return True
        next_el = next_el.getnext()
        if (not is_li(next_el, meta_data)):
            continue
        new_numId = get_numId(next_el, w_namespace)
        if (current_numId != new_numId):
            return True
        return False

dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py is_last_li/original