Repository navigation
fix: keep the text of tables nested in DOCX table cells - #13906
astroknot-sheep wants to merge 1 commit into
Conversation
|
Someone is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
|
Dhriman Deka seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
|
Hi @astroknot-sheep, we're closing this PR because the Contributor License Agreement (CLA) check is still pending after 48 hours. Thanks a lot for your interest in contributing to Haystack! The commit is authored as [email protected], which isn't linked to your GitHub account, so CLA Assistant can't match it to the CLA you already signed. To fix it, either add that email to your GitHub account (Settings → Emails), or amend the commit with your GitHub noreply email and force-push. Then use the "recheck" link in the CLA comment and reopen this PR. It will then automatically be marked ready for review. |
Related Issues
Proposed Changes:
DOCXToDocument._cell_textonly readcell.paragraphs, so a table nested inside a table cell was dropped without any warning. It now walks the cell's children in order: paragraphs are handled as before (includinglink_format), and a nested table is read cell by cell, one nested cell per line. The existing CSV quoting and markdown line-break escaping then take care of the multi-line cell, so the outer table shape does not change.How did you test it?
Added
test_run_reads_a_table_nested_in_a_table_cellfor both CSV and markdown formats. It fails on main and passes with this change. Ran the fulltest_docx_file_to_document.pylocally (53 passed), and pre-commit on the changed files.Notes for the reviewer
I iterate
tr.tc_lstinstead ofrow.cellsfor the nested table so a horizontally merged nested cell is not repeated.I used an AI assistant while finding and fixing this; I have reviewed the change and the test myself.
Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:and added!in case the PR includes breaking changes.