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