-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(docx): Missing list items after numbered header #2665
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
Conversation
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
|
✅ DCO Check Passed Thanks @dolfim-ibm, 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. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 Require two reviewer for test updatesWonderful, this rule succeeded.When test data is updated, we require two reviewers
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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>
ceberam
left a comment
There was a problem hiding this 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.
…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>
Issue resolved by this Pull Request:
Resolves #2250
Checklist: