Commit 7c3255f
committed
Fix bug 7054190 line breaks at inappropriate places
We were doing line breaks after punctuation as long as they weren't
surrounded by digits. This is a misinterpretation of the Unicode line
breaking algorithm. Punctuation (class IS) is not hugely different than
the default classes (NU and AL) - there are breaks after punctuation
that are allowed (for example, followed by an open parenthesis), but
we're not implementing the algorithm with anything near that level of
fidelity.
The long term fix is to really implement the algorithm. In the shorter
term, the easiest thing to do is to remove the special case altogether.
Change-Id: Ic4dc3216c2a4191fbb7cfa06e9dc038d1a56398c1 parent 1552586 commit 7c3255f
1 file changed
+0
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | 360 | | |
366 | 361 | | |
367 | 362 | | |
| |||
959 | 954 | | |
960 | 955 | | |
961 | 956 | | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | 957 | | |
967 | 958 | | |
968 | 959 | | |
| |||
0 commit comments