[evolution/gnome-3-24] Bug 784438 - Hyperlinks href changed to text when expanding the text
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-24] Bug 784438 - Hyperlinks href changed to text when expanding the text
- Date: Mon, 3 Jul 2017 16:30:10 +0000 (UTC)
commit d974068a05a0b3b98201cecc3573109279711c05
Author: Milan Crha <mcrha redhat com>
Date: Mon Jul 3 18:26:31 2017 +0200
Bug 784438 - Hyperlinks href changed to text when expanding the text
.../web-extension/e-editor-dom-functions.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
b/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index 8b32b25..6c2c8fb 100644
--- a/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -1710,12 +1710,9 @@ e_editor_dom_check_magic_links (EEditorPage *editor_page,
diff++;
if ((g_strcmp0 (url, text) != 0 && ABS (diff) == 1) || appending_to_link) {
- gchar *inner_html, *protocol, *new_href;
+ gchar *new_href;
- protocol = g_strndup (href, strstr (href, "://") - href + 3);
- inner_html = webkit_dom_element_get_inner_html (parent);
- new_href = g_strconcat (
- protocol, inner_html, appending_to_link ? text_to_append : "", NULL);
+ new_href = g_strconcat (href, appending_to_link ? "" : text_to_append, NULL);
webkit_dom_html_anchor_element_set_href (
WEBKIT_DOM_HTML_ANCHOR_ELEMENT (parent),
@@ -1732,8 +1729,6 @@ e_editor_dom_check_magic_links (EEditorPage *editor_page,
}
g_free (new_href);
- g_free (protocol);
- g_free (inner_html);
}
} else {
diff = strlen (text) - strlen (href);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]