diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-11-19 17:15:21 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-11-19 19:31:14 -0500 |
commit | b3cc93010062b11c139cff2ebb7c64d43b7b872f (patch) | |
tree | e13df9f3173d857474b29a9e8724668b9bd522be /pango/break.c | |
parent | 0eb9ca5aafdd796975e8a65ca288faab08ee8901 (diff) | |
download | pango-b3cc93010062b11c139cff2ebb7c64d43b7b872f.tar.gz |
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
Diffstat (limited to 'pango/break.c')
-rw-r--r-- | pango/break.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |