Skip to content

Expose direct table left indentation - #1618

Draft
pseudosavant wants to merge 1 commit into
python-openxml:masterfrom
pseudosavant:codex/table-left-indent-upstream
Draft

pseudosavant wants to merge 1 commit into
python-openxml:masterfrom
pseudosavant:codex/table-left-indent-upstream

Conversation

@pseudosavant

Copy link
Copy Markdown

Word stores direct table indentation in w:tblInd, but Table does not expose it. This adds a read/write Table.left_indent property. It accepts a length in twips and supports None to remove the direct setting so the table style can supply the effective indentation.

The change keeps the table's style and alignment intact. It registers w:tblInd with the existing table width element type and adds unit and round trip tests.

Validation: 156 table tests passed against upstream master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant