

@ensure_tag(['p'])
def get_single_list_nodes_data(li, meta_data):
    '\n    Find consecutive li tags that have content that have the same list id.\n    '
    (yield li)
    w_namespace = get_namespace(li, 'w')
    current_numId = get_numId(li, w_namespace)
    starting_ilvl = get_ilvl(li, w_namespace)
    el = li
    while True:
        el = el.getnext()
        if (el is None):
            break
        if (not has_text(el)):
            continue
        if _is_top_level_upper_roman(el, meta_data):
            break
        if (is_li(el, w_namespace) and (starting_ilvl > get_ilvl(el, w_namespace))):
            break
        new_numId = get_numId(el, w_namespace)
        if ((new_numId is None) or (new_numId == (- 1))):
            (yield el)
            continue
        if (current_numId != new_numId):
            break
        if is_last_li(el, meta_data, current_numId):
            (yield el)
            break
        (yield el)

dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py get_single_list_nodes_data/VarMisuse@116/192 `meta_data`->`w_namespace`