Skip to content

Document multilevel list numbering in subdocuments - #211

Merged
cvas22 merged 2 commits into
cvas22:mainfrom
CAOShurong:codex/docform-multilevel-list
Nov 28, 2026
Merged

cvas22 merged 2 commits into
cvas22:mainfrom
CAOShurong:codex/docform-multilevel-list

Conversation

@CAOShurong

Copy link
Copy Markdown
Contributor

Fixes #149.

The example uses one Word numbering instance for all generated paragraphs. Word then restarts the lettered and Roman levels under each new parent. The guide includes the template and the script that renders it.

The full suite passed from the source distribution. The new test verifies that every generated paragraph retains the same numbering ID and its explicit level.

Copilot AI balanced review requested due to automatic review settings November 27, 2026 11:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added documentation Improvements or additions to documentation tests Changes to tests examples Changes to example scripts labels Nov 27, 2026

@cvas22 cvas22 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for this. I opened the output in Word 16 on Windows and only the top level gets numbers, the a. and i. levels come out blank. It's the w:lvlRestart entries in the template's numbering.xml: with those removed Word shows 1., a., b., i., ii., 2., a., i. as expected, and restarting under the parent is already Word's default so they aren't needed. Could you drop them from template.docx? The rest looks good to me, tests pass locally too.

@CAOShurong

Copy link
Copy Markdown
Contributor Author

Removed the two explicit w:lvlRestart entries from the example template. The rendered example now shows 1., a., b., i., ii., 2., a., i. in Word 16 on Windows. The regression test checks that the three list levels use the default restart behavior, and all 106 unit tests pass.

Copilot AI balanced review requested due to automatic review settings November 28, 2026 05:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@cvas22

cvas22 commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Checked the new template in Word on Windows and all three levels number and restart correctly now. thx @CAOShurong!

@cvas22
cvas22 merged commit 42c3dd0 into cvas22:main Nov 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation examples Changes to example scripts tests Changes to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for multilevel lists

3 participants