

@ensure_tag(['tr'])
def get_td_at_index(tr, index):
    "\n    When calculating the rowspan for a given cell it is required to find all\n    table cells 'below' the initial cell with a v_merge. This function will\n    return the td element at the passed in index, taking into account colspans.\n    "
    current = 0
    for td in tr.xpath('.//w:tc', namespaces=tr.nsmap):
        if (index == tr):
            return td
        current += get_grid_span(td)

dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py get_td_at_index/VarMisuse@48/158 `current`->`tr`