Skip to content

Add table width/layout, tab stops, and bookmarks - #46

Open
ajay20015 wants to merge 2 commits into
PumasAI:mainfrom
ajay20015:main
Open

Add table width/layout, tab stops, and bookmarks#46
ajay20015 wants to merge 2 commits into
PumasAI:mainfrom
ajay20015:main

Conversation

@ajay20015

Copy link
Copy Markdown

Adds support for several Word features, following the ECMA-376 spec:

  • TableWidth (pct/dxa) and TableLayout, plus a Table column grid, so a table can fill the page width or use fixed column widths.
  • Tab and TabStop/TabStops, for tab-aligned text with leaders.
  • BookmarkStart/BookmarkEnd, named anchors so hyperlinks and a table of contents can target locations in the document.
  • line/line_rule on Spacing, for paragraph line spacing.

Each has a reference test. The additions are backwards-compatible. One existing behavior changes for spec conformance: <w:tblCellSpacing> now carries the required w:type="dxa", and TableProperties children follow the CT_TblPrBase schema order — so the generated XML changes for tables that set cell spacing (documents render identically).

Fixes #45.

@ajay20015
ajay20015 marked this pull request as ready for review July 16, 2026 12:25
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.

Support table width/layout, tab stops, and bookmarks

1 participant