Paper Office
paper-docxAPI referenceoxml.revision

docx.oxml.revision

paper-docx 0.2.0 API reference

Custom element classes for the tracked-change (revision) vocabulary.

w:ins and w:del wrap runs whose content was inserted or deleted with change tracking on. Deleted text lives in w:delText (which shares the CT_Text shape), never in a live w:t — Word treats a w:t inside w:del as corrupt.

This is paper-docx's first new XML vocabulary; it follows the comments feature (v1.2.0) structurally: declarative descriptors here, registration in docx/oxml/__init__.py, emission through these classes only (never hand-assembled lxml in proxy code).