-
Notifications
You must be signed in to change notification settings - Fork 360
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
First word breaks unnecessarily at the end of the line #429
Comments
Now a long word will not break unless it would not fit on a line by itself. + Refactored InlineBoxing::layoutContent to several methods. + Added test by @mndzielski from issue. + Had to update columns test proof as work on line breaking fixed a previously unnoticed issue in the output. + Updated existing break-word test to test all three cases: + Normal fitting word. + Word too long for current line and would not fit on a line by itself. + Word too long for current line but would fit on a line by itself. + Added unit tests for new break character mode text breaker. + Some code documentation.
Hi @danfickle Code:
So now if the first word in the line is too long it not breaks at all (case 2). 😢 |
I've committed take 2 on fixing this issue. I think it is more robust. Thanks for taking time to find my bugs! |
Hi @danfickle
The bug as well exists with text-align: right and justify . |
I had taken care of breaking itself, but measurement (required for non-left aligned text) was previously forgotten. Now fixed.
Thanks again @mndzielski, I hope take 3 is finally correct! |
This feature will be in the next release. |
Hi,
I use css
word-wrap: break-word;
to force long words to break. Unfortunately if at the end of line there is new html element like<b>text ...</b>
first word breaks. If there is enough place situation doesn't appear for second word. In third case if I don't use word-wrap b element doesn't break.HTML code:
and the result:
What can I do to fix it?
The text was updated successfully, but these errors were encountered: