MCPcopy Index your code
hub / github.com/python-openxml/python-docx / _tcs_xml

Method _tcs_xml

src/docx/oxml/table.py:248–256  ·  view source on GitHub ↗
(cls, col_count: int, col_width: Length)

Source from the content-addressed store, hash-verified

246
247 @classmethod
248 def _tcs_xml(cls, col_count: int, col_width: Length) -> str:
249 return (
250 f" <w:tc>\n"
251 f" <w:tcPr>\n"
252 f' <w:tcW w:type="dxa" w:w="{col_width.twips}"/>\n'
253 f" </w:tcPr>\n"
254 f" <w:p/>\n"
255 f" </w:tc>\n"
256 ) * col_count
257
258
259class CT_TblGrid(BaseOxmlElement):

Callers 1

_trs_xmlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected