[evolution/wip/webkit2] EHTMLEditorView - Cannot append text to links if non-breaking space is presented



commit cc0f57f879e4ed89ecf4559670559055abfdab38
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Mar 3 13:51:39 2016 +0100

    EHTMLEditorView - Cannot append text to links if non-breaking space is presented

 .../composer/e-html-editor-view-dom-functions.c    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-view-dom-functions.c 
b/web-extensions/composer/e-html-editor-view-dom-functions.c
index ffc1e63..d3341c8 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -2378,7 +2378,7 @@ body_input_event_process (WebKitDOMDocument *document,
 
                        text = webkit_dom_node_get_text_content (node);
 
-                       if (text && *text && !strstr (text, " ")) {
+                       if (text && *text && *text != ' ' && !g_str_has_prefix (text, UNICODE_NBSP)) {
                                gboolean valid = FALSE;
 
                                if (*text == '?' && strlen (text) > 1)


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