

@ensure_tag(['tbl'])
def build_table(table, meta_data):
    '\n    This returns a table object with all rows and cells correctly populated.\n    '
    table_el = etree.Element('table')
    w_namespace = get_namespace(table, 'w')
    row_spans = get_rowspan_data(table)
    for el in table:
        if (el.tag == ('%str' % w_namespace)):
            tr_el = build_tr(el, meta_data, row_spans)
            table_el.append(tr_el)
    visited_nodes = list(table.iter())
    return (table_el, visited_nodes)

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