scitex_msword.tables
Table insertion utilities for python-docx Documents.
The public entry point insert_table_after_paragraph() builds a
<w:tbl> element directly with pure lxml (so it works on raw
python-docx 1.1.x without going through the high-level Table API) and
inserts it as the next sibling of a target paragraph. When the source
document already has Track Changes enabled, each generated <w:tr>
is marked as an inserted row by emitting
<w:trPr><w:ins .../></w:trPr> so that Word surfaces the new rows
as accept/reject-able revisions — matching the dogfood-time pattern
proj-grant’s build_v43.py shipped in BOOST today.
OOXML refs:
w:tblECMA-376 §17.4.38w:tblPrECMA-376 §17.4.59w:tblGridECMA-376 §17.4.49w:trECMA-376 §17.4.79w:trPrECMA-376 §17.4.82w:ins(in trPr) ECMA-376 §17.13.5.18 (row-level insertion marker)
Functions
|
Insert a Word table immediately after |