From b3cc93010062b11c139cff2ebb7c64d43b7b872f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 19 Nov 2021 17:15:21 -0500 Subject: Don't replace | with hyphens I went a bit overboard in #603. The vertical bar is too common, and this usage to specialized to do it by default. To enable this, we should rather make log attrs tweakable. We still replace hyphenation points with hyphens. Fixes: #630 --- pango/break.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pango/break.c') diff --git a/pango/break.c b/pango/break.c index 3a3e0b23..3af083ce 100644 --- a/pango/break.c +++ b/pango/break.c @@ -1624,8 +1624,7 @@ default_break (const char *text, else attrs[i].break_inserts_hyphen = insert_hyphens; - if (prev_wc == 0x007C || /* Vertical Line */ - prev_wc == 0x2027) /* Hyphenation point */ + if (prev_wc == 0x2027) /* Hyphenation point */ { attrs[i].break_inserts_hyphen = TRUE; attrs[i].break_removes_preceding = TRUE; -- cgit v1.2.1