Skip to content

FIX: keep line breaks in image text converters - #3474

Open
Utkarsh Bahuguna (u7k4rs6) wants to merge 2 commits into
microsoft:mainfrom
u7k4rs6:fix/image-text-newlines
Open

Utkarsh Bahuguna (u7k4rs6) wants to merge 2 commits into
microsoft:mainfrom
u7k4rs6:fix/image-text-newlines

Conversation

@u7k4rs6

Copy link
Copy Markdown
Contributor

The image text converters wrapped text with textwrap.fill, which turns newlines into spaces, so multi-line text got drawn as one paragraph. This wraps each line separately, so line breaks and blank lines show up in the image and long lines still wrap. The new tests go through convert_async for all three converters and fail on main.

Fixes #3473

This branch has not been deployed

No deployments
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.

BUG: image text converters drop line breaks

1 participant