Skip to content
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

fix: preserve text after line breaks in PowerPoint table cells #3877

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unstructured/partition/pptx.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def _iter_table_element(self, graphfrm: GraphicFrame) -> Iterator[Table]:
return

html_text = htmlify_matrix_of_cell_texts(
[[cell.text for cell in row.cells] for row in rows]
[[cell.text.replace("\n", " ") for cell in row.cells] for row in rows]
)
html_table = HtmlTable.from_html_text(html_text)

Expand Down