[evolution/webkit-composer: 227/231] Cut the link text also on the end when we recognize the link.



commit 5798f8de9feb95f9e096bbf582cd43cd289bfa38
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Jul 24 17:36:14 2013 +0200

    Cut the link text also on the end when we recognize the link.

 e-util/e-editor-widget.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index 0da508d..cad3889 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -394,8 +394,7 @@ editor_widget_check_magic_links (EEditorWidget *widget,
                url_length = g_utf8_strlen (urls[0], -1);
                url_start = url_end - url_length;
 
-               if (include_space)
-                       webkit_dom_text_split_text (WEBKIT_DOM_TEXT (node), url_end - 1, NULL);
+               webkit_dom_text_split_text (WEBKIT_DOM_TEXT (node), include_space ? url_end - 1 : url_end, 
NULL);
 
                url_text_node = webkit_dom_text_split_text (WEBKIT_DOM_TEXT (node), url_start, NULL);
                url_text_node_clone = webkit_dom_node_clone_node (WEBKIT_DOM_NODE (url_text_node), TRUE);


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