Chromium Code Reviews
DescriptionApply hyphenation when there is only one word in a paragraph
The logic not to hyphenate the last word in a paragraph also prevented
single word in a paragraph from being hyphenated.
This patch hyphenates the single word case, as an exception to the
orphaned word. This is the same behavior with WebKit.
This patch also fixes not to hyphenate the last word when followed by
spaces.
BUG=671125
Committed: https://crrev.com/f16ecaf4fc414d951fe9b1699d96e7eba3eab13a
Cr-Commit-Position: refs/heads/master@{#436926}
Patch Set 1 #Patch Set 2 : WIP #Patch Set 3 : WIP #Patch Set 4 : Cleanup, add test #Patch Set 5 : Add a static helper function #Messages
Total messages: 22 (17 generated)
|