[evolution] EHTMLEditorView - Don't send the selection markers when sending a HTML mail



commit 33faed1689f9ed921f7862058a069c420336a2bb
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Feb 4 12:11:14 2015 +0100

    EHTMLEditorView - Don't send the selection markers when sending a HTML mail

 e-util/e-html-editor-view.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index a4deacf..8b65eb2 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -7093,9 +7093,10 @@ process_content_for_plain_text (EHTMLEditorView *view)
 static gchar *
 process_content_for_html (EHTMLEditorView *view)
 {
+       gchar *html_content;
        WebKitDOMDocument *document;
+       WebKitDOMElement *marker;
        WebKitDOMNode *node, *document_clone;
-       gchar *html_content;
 
        document = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view));
        document_clone = webkit_dom_node_clone_node (
@@ -7111,6 +7112,15 @@ process_content_for_html (EHTMLEditorView *view)
                remove_node (node);
        node = WEBKIT_DOM_NODE (webkit_dom_element_query_selector (
                WEBKIT_DOM_ELEMENT (document_clone), "body", NULL));
+       marker = webkit_dom_element_query_selector (
+               WEBKIT_DOM_ELEMENT (node), "#-x-evo-selection-start-marker", NULL);
+       if (marker)
+               remove_node (WEBKIT_DOM_NODE (marker));
+       marker = webkit_dom_element_query_selector (
+               WEBKIT_DOM_ELEMENT (node), "#-x-evo-selection-end-marker", NULL);
+       if (marker)
+               remove_node (WEBKIT_DOM_NODE (marker));
+
        process_elements (view, node, TRUE, FALSE, FALSE, NULL);
 
        html_content = webkit_dom_html_element_get_outer_html (


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