summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-03-01 22:11:57 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-03-01 22:11:57 +0000
commitc0b7bacb185c3d1da8790168f84413b5b7cb6898 (patch)
treed68909ef079fa296bb0af77eb6567669c051550b /pango
parent59d48e76715234cc81be6b819af6ba022e41d3ef (diff)
downloadpango-c0b7bacb185c3d1da8790168f84413b5b7cb6898.tar.gz
Don't break lines on LINE_SEPARATOR in single-paragraph mode. (#168589,
2005-03-01 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (process_item): Don't break lines on LINE_SEPARATOR in single-paragraph mode. (#168589, Damon Chaplin)
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index d475a945..98129595 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -2777,7 +2777,8 @@ process_item (PangoLayout *layout,
processing_new_item = TRUE;
}
- if (g_utf8_get_char (layout->text + item->offset) == LINE_SEPARATOR)
+ if (!layout->single_paragraph &&
+ g_utf8_get_char (layout->text + item->offset) == LINE_SEPARATOR)
{
insert_run (line, state, item, TRUE);
state->log_widths_offset += item->num_chars;