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

rfctr(pptx): minify HTML and table.text is cct #3734

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

scanny
Copy link
Collaborator

@scanny scanny commented Oct 18, 2024

Summary
Eliminate historical "idiosyncracies" of table.metadata.text_as_html HTML introduced by partition_pptx(). Produce minified .text_as_html consistent with that formed by chunking.

Additional Context

  • PPTX .metadata.text_as_html is minified (no extra whitespace or thead, tbody, tfoot elements).
  • table.text is clean-concatenated-text (CCT) of table.
  • Last use of tabulate library is removed and that dependency is removed from base.in.

@scanny scanny force-pushed the scanny/minify-pptx-html branch 5 times, most recently from e3a55ff to 8280dac Compare October 19, 2024 02:55
Comment on lines -216 to -220
def _iter_title_shape_element(self, shape: Shape) -> Iterator[Element]:
"""Generate Title element for each paragraph in title `shape`.

Text is most likely a title, but in the rare case that the title shape was used
for the slide body text, also check for bulleted paragraphs."""
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just out of order, so moved without code changes.

Copy link
Collaborator

@Coniferish Coniferish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@scanny scanny added this pull request to the merge queue Oct 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 21, 2024
@scanny scanny added this pull request to the merge queue Oct 21, 2024
Merged via the queue into main with commit 3240e3d Oct 21, 2024
41 checks passed
@scanny scanny deleted the scanny/minify-pptx-html branch October 21, 2024 17:00
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