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

Html to PDF - word-break: break-all does not reflect the correct expected formatting #1507

Closed
frafor opened this issue Nov 27, 2021 · 2 comments

Comments

@frafor
Copy link

frafor commented Nov 27, 2021

I have attached a couple images of what I see in HTML and what WeasyPrint "believes" I want to see.

Please, look at this. Just help here by, if you know, simply showing the CSS to be included so that WeasyPrint will do it the way we need in the HTML image.

This is what we need: (html)

wordwraphtml

This is what WeasyPrint “believes” we need: (pdf)

wordwrappdf

@frafor frafor changed the title Html to PDF - word-break: break-all does not reflect the correct expected formattin Html to PDF - word-break: break-all does not reflect the correct expected formatting Nov 27, 2021
@frafor
Copy link
Author

frafor commented Nov 27, 2021

One more example of something that WeasyPrint cannot do when transforming from HTML to PDF:

This is what the HTML page contains (which is what we need):

wordwraphtml2

And this is what the PDF contains, which HAS NO REASON to be like that (it is not following the instructions given):

wordwrappdf2

@liZe
Copy link
Member

liZe commented Nov 28, 2021

Hello!

You’re right, word-break is not correctly supported. This issue is a duplicate of #1153.

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

No branches or pull requests

2 participants