[evolution/wip/webkit2] EHTMLEditorView - Inserting space after the link appends it to the link



commit 5cf2e1d90449b360955d5ac5615ed01c775e19cb
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Feb 26 10:52:01 2016 +0100

    EHTMLEditorView - Inserting space after the link appends it to the link

 .../composer/e-html-editor-view-dom-functions.c    |    3 ++-
 1 files changed, 2 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 80caf7d..6101c07 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -987,7 +987,8 @@ dom_check_magic_links (WebKitDOMDocument *document,
                        text_to_append = webkit_dom_node_get_text_content (node);
                        if (text_to_append && *text_to_append &&
                            !strstr (text_to_append, " ") &&
-                           !strchr (URL_INVALID_TRAILING_CHARS, *text_to_append)) {
+                           !strchr (URL_INVALID_TRAILING_CHARS, *text_to_append) &&
+                           !g_str_has_prefix (text_to_append, UNICODE_NBSP)) {
 
                                appending_to_link = TRUE;
                                parent = WEBKIT_DOM_ELEMENT (prev_sibling);


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