Skip to content

fix: render empty list entries#2893

Merged
liborm85 merged 4 commits into
bpampuch:masterfrom
NadeemShadan:fix-empty-list-item
Dec 20, 2025
Merged

fix: render empty list entries#2893
liborm85 merged 4 commits into
bpampuch:masterfrom
NadeemShadan:fix-empty-list-item

Conversation

@NadeemShadan

Copy link
Copy Markdown
Contributor

Fixes #2877

Updated TextBreaker::splitWords to ensure it keeps an inline for empty strings so ordered /unordered lists can intentionally contain blank entries

added examples/blank-list-check.js to demonstrate and manually verify the behavior

Testing

  • npm test
  • node examples/blank-list-check.js (produces examples/pdfs/blank-list-gap.pdf)

@liborm85

Copy link
Copy Markdown
Collaborator

Thanks. Merged.

@liborm85 liborm85 merged commit 7f65fad into bpampuch:master Dec 20, 2025
9 checks passed
liborm85 added a commit that referenced this pull request Dec 20, 2025
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.

Empty child in a in list

2 participants