-
-
Notifications
You must be signed in to change notification settings - Fork 682
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
Add support for CSS property: word-break #1153
Comments
Hello! Strange, |
It seems as though this is a particularly acute problem in tables, as it can't be worked around with <style>
html {
overflow-wrap: break-word;
}
</style>
<table><tr><td>LONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONG</td></tr></table>
<p>LONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONGLONG</p> I suspect this is probably about to cause some issues for my uses. If you have a few minutes, can you point me towards where in the code I might try to poke to get either (edit: ignore the space before the last |
Hi, have you any plans about this feature? |
That’s right, it would be really useful.
We have plans to rewrite the text management in the future, mostly to handle right-to-left and bidirectional text. But there’s nothing about that in the milestones yet.
As far as I can remember, WeasyPrint/weasyprint/text/line_break.py Lines 539 to 556 in 22efdc8
|
Is this still an issue? I tested |
You’re right, it’s supported now. And if it works "quite well" in columns, we can assume that it works well enough everywhere else 😄. Thanks a lot! |
Currently,
word-break
is not supported, it's needed if you want to do fine-grained text layout, especially for CJK text.The text was updated successfully, but these errors were encountered: