

@ensure_tag(['tc'])
def get_v_merge(tc):
    "\n    vMerge is what docx uses to denote that a table cell is part of a rowspan.\n    The first cell to have a vMerge is the start of the rowspan, and the vMerge\n    will be denoted with 'restart'. If it is anything other than restart then\n    it is a continuation of another rowspan.\n    "
    if (tc is None):
        return None
    v_merges = tc.xpath('.//w:vMerge', namespaces=tc.nsmap)
    if (len(v_merges) != 1):
        return None
    v_merge = v_merges[0]
    return v_merge

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