

@ensure_tag(['tc'])
def get_grid_span(tc):
    '\n    gridSpan is what docx uses to denote that a table cell has a colspan. This\n    is much more simple than rowspans in that there is a one-to-one mapping\n    from gridSpan to colspan.\n    '
    w_namespace = get_namespace(tc, 'w')
    grid_spans = tc.xpath('.//w:gridSpan', namespaces=tc.nsmap)
    if (len(grid_spans) != 1):
        return 1
    grid_span = grid_spans[0]
    return int(w_namespace.get(('%sval' % w_namespace)))

dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py get_grid_span/VarMisuse@70/182 `grid_span`->`w_namespace`