summaryrefslogtreecommitdiff
path: root/tests/markup-parse.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-14 18:35:50 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-15 08:38:45 -0500
commit3a566950b516386b25fa028bee73d524dd9ada92 (patch)
tree5b2aa0bbd4e66ab484ba1a42d02bfdbd7fa9fbde /tests/markup-parse.c
parentcadc688fa4ef2abea1fc6b8dc3ffb053a401ad38 (diff)
downloadpango-3a566950b516386b25fa028bee73d524dd9ada92.tar.gz
Fix line-break accounting more
When looking for breakpoints, we were assuming that there is no point to keep looking forward once we hit a spot where the broken off part is too long. But with hyphen insertion, that is no longer true, necessarily. Consider 'bli '. Breaking after 'bl' will insert 'bl-', which might be longer than 'bli', which is what will be inserted when we break after the i. To fix this, keep looking for breakpoints as long as there is still a chance to find one.
Diffstat (limited to 'tests/markup-parse.c')
0 files changed, 0 insertions, 0 deletions