Skip to content

Fix: Preserve hard breaks and new lines in PPTX #1345

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

claytomode
Copy link

Hard Break Preservation and Improved PPTX New Line Handling

This pull request refactors the text content normalization process. It switches to using Python's str.splitlines() for more robust cross-platform newline handling and introduces logic to explicitly preserve two-space "hard breaks" in the text.

It then fixes #1331 by adding hard breaks to PPTX conversion

@claytomode
Copy link
Author

@microsoft-github-policy-service agree

@Shivam9652
Copy link

Verified that str.splitlines() correctly

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.

.pptx conversion doesn't add two spaces at the end of a line to preserve new lines
2 participants