-
Notifications
You must be signed in to change notification settings - Fork 102
fix: item numbering in document #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: glypt <[email protected]>
|
✅ DCO Check Passed Thanks @glypt, all your commits are properly signed off. 🎉 |
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🔴 Require two reviewer for test updatesThis rule is failing.When test data is updated, we require two reviewers
🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Thanks @glypt for your contributions and for suggesting this PR. docling-core/docling_core/types/doc/document.py Line 5686 in a54f6f0
The index This shows that the item at index If we applied the changes in your PR, the serialization would look like: and it would therefore count more items than they are in the document, since the caption would be counted as two different items. Please, let me know if the explanation is reasonable. |
The PR docling-project/docling#2589 revealed a bug, the caption is having the same number as the table here in https://github.com/docling-project/docling/pull/2589/files#diff-0ff184cc09560c89eb50dc9cf939c40bdf55d372d26823c956b55fb8f6c5e16fR1-R5.
This introduces a global numbering with increment at each item.