We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> </head> <body> <style> p { width: 320px; background-color: #eee; text-align: justify; word-break: break-all; } </style> <p>Link <a href="#">https://www.w3.org/community/webed/wiki/A_Short_History_of_JavaScript</a> link link.</p> </body> </html>
Browser rendering:
WeasyPrint rendering:
Versions:
weasyprint 62.3 libpango-1.0-0:amd64 1.50.12+ds-1 libpangocairo-1.0-0:amd64 1.50.12+ds-1 libpangoft2-1.0-0:amd64 1.50.12+ds-1
The text was updated successfully, but these errors were encountered:
Thanks for the report.
You’re right. It’s somehow supported, because it breaks words when it’s obliged to, but it should always break words instead.
Sorry, something went wrong.
(Related to #1153, #1507 and #1534.)
With word-break: break-all, We should probably set the wrap option earlier:
word-break: break-all
WeasyPrint/weasyprint/text/line_break.py
Lines 478 to 479 in d0ac723
No branches or pull requests
HTML:
Browser rendering:
WeasyPrint rendering:
Versions:
The text was updated successfully, but these errors were encountered: