[evolution] Bug 756535 - Hyperlinks are stripped from e-mails after being sent
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 756535 - Hyperlinks are stripped from e-mails after being sent
- Date: Wed, 14 Oct 2015 07:27:29 +0000 (UTC)
commit 51a5be96e00d2f1088f4b27db8240a95012d4ead
Author: Tomas Popela <tpopela redhat com>
Date: Wed Oct 14 09:22:52 2015 +0200
Bug 756535 - Hyperlinks are stripped from e-mails after being sent
When generating the plan text version of message we need to process all nodes
and not just the text or BR nodes.
e-util/e-html-editor-view.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 730aae3..868982d 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -8711,13 +8711,6 @@ process_list_to_plain_text (EHTMLEditorView *view,
WebKitDOMNode *node = webkit_dom_node_get_first_child (item);
GString *line = g_string_new ("");
while (node) {
- if (WEBKIT_DOM_IS_TEXT (node)) {
- /* append text from line */
- gchar *text_content;
- text_content = webkit_dom_node_get_text_content (node);
- g_string_append (line, text_content);
- g_free (text_content);
- }
if (WEBKIT_DOM_IS_HTMLBR_ELEMENT (node) &&
element_has_class (WEBKIT_DOM_ELEMENT (node), "-x-evo-wrap-br")) {
g_string_append (line, "\n");
@@ -8728,6 +8721,12 @@ process_list_to_plain_text (EHTMLEditorView *view,
g_string_append (line, indent_per_level);
g_string_append (item_value, line->str);
g_string_erase (line, 0, -1);
+ } else {
+ /* append text from node to line */
+ gchar *text_content;
+ text_content = webkit_dom_node_get_text_content (node);
+ g_string_append (line, text_content);
+ g_free (text_content);
}
node = webkit_dom_node_get_next_sibling (node);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]