Skip to content

fix(docx): guard None returned by findtext in OMML do_r method - #2248

Open
amir-rezaei wants to merge 1 commit into
microsoft:mainfrom
amir-rezaei:fix/docx-math-converter-none-text-run
Open

fix(docx): guard None returned by findtext in OMML do_r method#2248
amir-rezaei wants to merge 1 commit into
microsoft:mainfrom
amir-rezaei:fix/docx-math-converter-none-text-run

Conversation

@amir-rezaei

Copy link
Copy Markdown

Description

This PR resolves issue #2188 by guarding elm.findtext(./{0}t.format(OMML_NS)) or "" in do_r() (packages/markitdown/src/markitdown/converter_utils/docx/math/omml.py).

Details

  • Prevents TypeError: 'NoneType' object is not iterable when an <m:r> math run has no <m:t> text child, preventing the entire document equation conversion pass from failing silently.

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.

2 participants