[evolution] EHTMLEditorSelection - Allow text to be wrapped on the dash character



commit 15dbcddb8e35002accf9507303b40cb8bd150b0d
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Sep 19 09:29:07 2014 +0200

    EHTMLEditorSelection - Allow text to be wrapped on the dash character

 e-util/e-html-editor-selection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index de3e431..f43244e 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -5033,7 +5033,7 @@ find_where_to_break_line (WebKitDOMNode *node,
 
                        if (last_space == max_len - 1) {
                                uc = g_utf8_get_char (str);
-                               if (g_unichar_isspace (uc))
+                               if (g_unichar_isspace (uc) || str[0] == '-')
                                        last_space++;
                        }
 
@@ -5041,7 +5041,7 @@ find_where_to_break_line (WebKitDOMNode *node,
                        return last_space;
                }
 
-               if (g_unichar_isspace (uc))
+               if (g_unichar_isspace (uc) || str[0] == '-')
                        last_space = pos;
 
                pos += 1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]