Repository navigation
Conversation
…adding `tables format` could shade, align, border and size cells but not pad them, so a table rebuilt to match a template's 15-twip margins came out visibly different with no fix short of `raw edit`. --cell-margins takes one measure or top,right,bottom,left (units required, 0 allowed, `none` clears). With --at tN it writes the table default <w:tblCellMar> (Word's "Default cell margins", inherited by rows added later); a row/column/cell/range writes each cell's <w:tcMar>, which tracks as a real tcPrChange. The table default rides the audit-comment path like --align/--style. Both read back: Table.cellMargins / TableCell.margins in the AST and `cell-margins=` / `margins=` on the docx:table / docx:cell notes, in the flag's own shape so an agent can re-apply a template's value verbatim. The reader accepts Word's left/right-only form and strict start/end. Folded into the tables-mutations fixture and the invoice weak-agent scenario.
Owner
Author
|
Fork CI green (8/8); opened upstream as kklimuk#23. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fork-internal PR to run upstream CI before opening the real PR against kklimuk/docx-cli. Will be closed once CI is green.