@ensure_tag(['p'])
def get_ilvl(li, w_namespace):
    ilvls = li.xpath('.//w:ilvl', namespaces=li.nsmap)
    if len(ilvls) == 0:
        return -1
    return int(ilvls[0].get('%sval' % w_namespace))
The ilvl on an li tag tells the li tag at what level of indentation this
dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py/get_ilvl