Skip to content

Conversation

@dolfim-ibm
Copy link
Member

Issue resolved by this Pull Request:
Resolves #2250

Checklist:

  • Documentation has been updated, if necessary.
  • Examples have been added, if necessary.
  • Tests have been added, if necessary.

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
@dosubot
Copy link

dosubot bot commented Nov 20, 2025

Related Documentation

Checked 4 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

DCO Check Passed

Thanks @dolfim-ibm, all your commits are properly signed off. 🎉

@mergify
Copy link

mergify bot commented Nov 20, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

🟢 Require two reviewer for test updates

Wonderful, this rule succeeded.

When test data is updated, we require two reviewers

  • #approved-reviews-by >= 2

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
docling/backend/msword_backend.py 33.33% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@cau-git cau-git requested a review from maxmnemonic November 21, 2025 08:40
Remove 'current_parent is None' check in '_add_list_item' function since it
will always be None.

Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
Copy link
Member

@ceberam ceberam left a comment

Choose a reason for hiding this comment

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

It resolves the original issue from #2250 . Other corner cases shared in the conversation thread will be tackled in another issue.

@dolfim-ibm dolfim-ibm merged commit e580554 into main Nov 24, 2025
27 of 28 checks passed
@dolfim-ibm dolfim-ibm deleted the fix-2250 branch November 24, 2025 07:49
emreclsr added a commit to emreclsr/docling that referenced this pull request Nov 25, 2025
…2665)

This commit fixes an issue where list items immediately following
headings (especially numbered headings) were not being processed
correctly in Word documents.

Changes:
* Clear list history after headings to allow new lists to start
* Reset level tracking when heading resets hierarchy
* Reset level_at_new_list when a heading is added
* Replace else block with explicit elif condition for new list sequences
  - Only continue existing list if parent is actually a ListGroup
  - Handle different numid or missing ListGroup parent by creating new list

Added test case to verify list items appear after numbered headings.

Signed-off-by: Emre Çalışır <emrecalisir95@gmail.com>
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.

Missing doc content for word document when list after a header

3 participants