[evolution/gnome-3-18] EHTMLEditorView - Cannot append text to links if non-breaking space is presented



commit f977bfe1ebd83f62b0ef0b0a720ee0b45b0308ef
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Jan 7 14:17:27 2016 +0100

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

 e-util/e-html-editor-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 5cc4398..a823b4c 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2857,7 +2857,7 @@ body_input_event_cb (WebKitDOMElement *element,
 
                        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]