Repository navigation
Conversation
Contributor
|
@L4XB is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Hi @L4XB, thanks for your interest in contributing to Haystack! 🙏 This is an automated message to help us keep the review queue healthy. |
Contributor
Author
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues
Proposed Changes:
With
link_format="markdown"or"plain",PPTXToDocument._process_paragraph()joinedparagraph.runs. python-pptx returns only thea:rchildren there. A field, such as a slide number or a date (a:fld), is a sibling of the runs, so its text was dropped.link_format="none"usesparagraph.text, which includes fields, so the formats gave different text:link_formatnoneSlide 3 of the deckSlide 3 of the deckmarkdownSlide of [the deck](https://example.com)Slide 3 of [the deck](https://example.com)plainSlide of the deck (https://example.com)Slide 3 of the deck (https://example.com)_process_paragraph()now walks the children of the paragraph element in order. Ana:fldadds its text, and ana:ris formatted as before. Other children, including line breaks (a:br), are skipped as before, so this PR does not change line breaks.How did you test it?
test_run_keeps_field_text_with_every_link_formatbuilds a slide whose paragraph hasSlide, a slide-number field,ofand a hyperlinked run, and it is parametrized over the three link formats. Themarkdownandplaincases fail onmainand pass here.test/components/converters/test_pptx_to_document.py: 15 passed.pre-commit runon the changed files passes (ruff check, ruff format, codespell, release-note backticks), andmypyonpptx.pypasses.Notes for the reviewer
As discussed in #13370, this PR covers only the field text. Line breaks are #13043, and #13222 changes the same loop to keep them. The two changes add separate branches to that loop, so whichever lands second needs a small rebase.
Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:and added!in case the PR includes breaking changes.