Skip to content

Fix paragraph property section break detection#4

Open
Bruce-anle wants to merge 1 commit into
sudipnext:mainfrom
Bruce-anle:fix/paragraph-section-break
Open

Fix paragraph property section break detection#4
Bruce-anle wants to merge 1 commit into
sudipnext:mainfrom
Bruce-anle:fix/paragraph-section-break

Conversation

@Bruce-anle
Copy link
Copy Markdown

Summary

  • detect section breaks stored under w:pPr/w:sectPr
  • preserve existing direct w:p/w:sectPr handling
  • add focused markdown converter tests for both forms

Why

DOCX section properties are normally stored under paragraph properties. The previous converter only checked direct paragraph children, so normal section breaks were missed.

Tests

  • /home/brucean/doc4agent/.venv/bin/python -m pytest tests -q -p no:cacheprovider

Background: DOCX section properties are normally stored under w:pPr/w:sectPr. The markdown converter only checked for direct w:p/w:sectPr children, so normal section breaks were missed.\n\nChanges: check both direct and paragraph-property section breaks, with tests for both forms.\n\nVerification: /home/brucean/doc4agent/.venv/bin/python -m pytest tests -q -p no:cacheprovider passed.
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.

1 participant