summaryrefslogtreecommitdiff
path: root/gtk/font_pango.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/font_pango.c')
-rw-r--r--gtk/font_pango.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/font_pango.c b/gtk/font_pango.c
index e5994e71e..eda2f89c9 100644
--- a/gtk/font_pango.c
+++ b/gtk/font_pango.c
@@ -183,6 +183,7 @@ bool nsfont_split(const struct css_style *style,
pango_layout_set_width(layout, x * PANGO_SCALE);
pango_layout_set_wrap(layout, PANGO_WRAP_WORD);
+ pango_layout_set_single_paragraph_mode(layout, true);
line = pango_layout_get_line(layout, 1);
if (line)
index = line->start_index - 1;