table_row_insert
Insert a tracked row into a body table after a chosen row, with one text per cell. It refuses insertion across a vertical merge, keeping document revisions valid.
Instructions
Insert a row into a body table as a tracked change (w:trPr/w:ins, tracked text), after row after_row, one text per cell. Refused between two rows that a vertical merge spans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Path to the .docx. | |
| tag | No | Appended to the author. | |
| cells | Yes | One text per cell of the row it follows (the first row for after_row 0); a horizontally merged cell is one cell. | |
| table | Yes | Table number as `table.get` numbers it: 1-based, in document order, main story only (a table in a note, header or footer cannot be named here). | |
| author | No | Revision author. | |
| expect | No | ||
| dry_run | No | Preview only; write nothing. | |
| after_row | Yes | Insert after this row (1-based); 0 inserts before the first row. |