diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2008-04-24 05:28:35 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2008-04-24 05:28:35 +0000 |
commit | 664b6699da4b4cdd2fb5863751eb33ce4d36d41f (patch) | |
tree | c3ca2fee36544e97b3843c0c365553a3a5a789eb /pango/break.c | |
parent | 1db041b2108a332b42479231d8041d097adc41de (diff) | |
download | pango-664b6699da4b4cdd2fb5863751eb33ce4d36d41f.tar.gz |
Allow line break at the end of string. UAX#14 rule LB3 says "Always break
2008-04-24 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_default_break): Allow line break at the end of
string. UAX#14 rule LB3 says "Always break at the end of text."
With this test, Pango passes the LineBreakTest.txt, sans the bug in
the test file that I've already reported to unicoRe.
svn path=/trunk/; revision=2613
Diffstat (limited to 'pango/break.c')
-rw-r--r-- | pango/break.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/break.c b/pango/break.c index fba8b85e..5a1e917b 100644 --- a/pango/break.c +++ b/pango/break.c @@ -743,7 +743,7 @@ pango_default_break (const gchar *text, g_assert (prev_break_type != G_UNICODE_BREAK_SPACE); - attrs[i].is_line_break = FALSE; + attrs[i].is_line_break = done; /* XXX ugly */ attrs[i].is_mandatory_break = FALSE; if (attrs[i].is_cursor_position) /* If it's not a grapheme boundary, |