[Commits] [SCM] claws branch, master, updated. 3.15.0-58-g6cc9389
claws at claws-mail.org
claws at claws-mail.org
Mon May 22 18:56:11 CEST 2017
The branch, master has been updated
via 6cc9389b81be221bec9fb2b8dd4876648986f215 (commit)
from 6c3b59e6ecc2ac6ffa6d4bf201f630b58641b2cf (commit)
Summary of changes:
src/compose.c | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit 6cc9389b81be221bec9fb2b8dd4876648986f215
Author: Paul <paul at claws-mail.org>
Date: Mon May 22 17:56:06 2017 +0100
add more utf8 listitem characters
patch by H. Merijn Brand
diff --git a/src/compose.c b/src/compose.c
index 224e5c1..1a6557d 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -4082,10 +4082,22 @@ static int compose_itemized_length(GtkTextBuffer *buffer,
}
clen = g_unichar_to_utf8(wc, ch);
- if (clen != 1)
- return 0;
-
- if (!strchr("*-+", ch[0]))
+ if (!((clen == 1 && strchr("*-+", ch[0])) ||
+ (clen == 3 && (
+ wc == 0x2022 || /* BULLET */
+ wc == 0x2023 || /* TRIANGULAR BULLET */
+ wc == 0x2043 || /* HYPHEN BULLET */
+ wc == 0x204c || /* BLACK LEFTWARDS BULLET */
+ wc == 0x204d || /* BLACK RIGHTWARDS BULLET */
+ wc == 0x2219 || /* BULLET OPERATOR */
+ wc == 0x25d8 || /* INVERSE BULLET */
+ wc == 0x25e6 || /* WHITE BULLET */
+ wc == 0x2619 || /* REVERSED ROTATED FLORAL HEART BULLET */
+ wc == 0x2765 || /* ROTATED HEAVY BLACK HEART BULLET */
+ wc == 0x2767 || /* ROTATED FLORAL HEART BULLET */
+ wc == 0x29be || /* CIRCLED WHITE BULLET */
+ wc == 0x29bf /* CIRCLED BULLET */
+ ))))
return 0;
gtk_text_iter_forward_char(&iter);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list