Repository navigation
fix: html serialization of lists with mixed markers - #701
julianfesel wants to merge 5 commits into
Conversation
|
✅ DCO Check Passed Thanks @julianfesel, all your commits are properly signed off. 🎉 |
Merge Protections🔴 1 of 2 protections blocking · waiting on 👀 reviews
🔴 Require two reviewer for test updatesWaiting for
This rule is failing.When test data is updated, we require two reviewers
Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
|
@julianfesel are all the changes produced on the test files what you would expect? |
For show_original_list_item_marker=True, yes. However, based on your comment, I realized that I had misunderstood the role of marker: "" in Docling. I did not realize that it is not nullable. In the new commits, I narrowed the application of strict markers to enumerated lists that contain at least one detected marker. As a result, there is now only one change in the test cases, which I believe is correct. In my opinion, automatic enumeration does not make sense when at least one numeric marker is present. At the very least, this would require a more detailed validation. In such cases, one cannot assume that the default enumeration is correct. Furthermore, especially in OCR scenarios, the marker may actually be part of the text itself. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Signed-off-by: Fesel Julian <[email protected]>
Signed-off-by: Fesel Julian <[email protected]>
Signed-off-by: Fesel Julian <[email protected]>
Signed-off-by: Fesel Julian <[email protected]>
a8761e0 to
d89dea0
Compare
Merge Protections🔴 1 of 2 protections blocking · waiting on 👀 reviews
🔴 Require two reviewer for test updatesWaiting for
This rule is failing.When test data is updated, we require two reviewers
Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
Signed-off-by: Fesel Julian <[email protected]>
Merge Protections🔴 1 of 2 protections blocking · waiting on 👀 reviews
🔴 Require two reviewer for test updatesWaiting for
This rule is failing.When test data is updated, we require two reviewers
Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
AI triage (advisory)Checked commit The HTML serializer now writes Topic labels added: CI safety: no concern found. A maintainer must still approve CI. 2 related pull request(s) in the same code
Reference data changes
Assessment: expected. Six HTML reference files each change by 2 lines, which fits the new The |
|
@dolfim-ibm @ceberam is there still something open I must do to finish this? |
Merge Protections🔴 1 of 2 protections blocking · waiting on 👀 reviews
🔴 Require two reviewer for test updatesWaiting for
This rule is failing.When test data is updated, we require two reviewers
Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
This PR implements option 1 of issue #699
HTML list items with an empty
markernow render withlist-style-type: none;when original markers are being shown, so the browser no longer invents numbering that is not present in theDoclingDocument.Changes
HTMLTextSerializerto suppress default list markers for unmarked list items while preserving explicit markers.