[evolution/wip/webkit2] Bug 756535 - Hyperlinks are stripped from e-mails after being sent



commit 569ca4327aaafb6e03cf9081742e9bb31c1b672c
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 2 13:15:53 2016 +0100

    Bug 756535 - Hyperlinks are stripped from e-mails after being sent

 .../composer/e-html-editor-view-dom-functions.c    |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 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 70ef36a..9241eca 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -5771,13 +5771,6 @@ process_list_to_plain_text (EHTMLEditorWebExtension *extension,
                                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_HTML_BR_ELEMENT (node) &&
                                            element_has_class (WEBKIT_DOM_ELEMENT (node), "-x-evo-wrap-br")) {
                                                g_string_append (line, "\n");
@@ -5788,6 +5781,12 @@ process_list_to_plain_text (EHTMLEditorWebExtension *extension,
                                                        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]