[pango/matthiasc/for-main: 2/2] Don't replace | with hyphens
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/matthiasc/for-main: 2/2] Don't replace | with hyphens
- Date: Sat, 20 Nov 2021 00:20:53 +0000 (UTC)
commit 32702c8ec35245703902f7bb7b0788bf12295123
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 19 17:15:21 2021 -0500
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(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]