[evolution/webkit-composer] Cut the link text also on the end when we recognize the link.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer] Cut the link text also on the end when we recognize the link.
- Date: Wed, 24 Jul 2013 15:37:17 +0000 (UTC)
commit 5aab8df3eed4f25bfa939a01e3283b7ba93a736b
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]