[evolution] EHTMLEditorView - Don't send the Evolution CSS style element in HEAD with HTML messages
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Don't send the Evolution CSS style element in HEAD with HTML messages
- Date: Wed, 4 Feb 2015 13:11:09 +0000 (UTC)
commit c47eeed5a16cb7376ab004dded21e3dd10a756ea
Author: Tomas Popela <tpopela redhat com>
Date: Tue Feb 3 11:24:08 2015 +0100
EHTMLEditorView - Don't send the Evolution CSS style element in HEAD with HTML messages
e-util/e-html-editor-view.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index a8dfac6..e1c753e 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -7092,15 +7092,19 @@ static gchar *
process_content_for_html (EHTMLEditorView *view)
{
WebKitDOMDocument *document;
- WebKitDOMNode *body, *document_clone;
+ 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 (
WEBKIT_DOM_NODE (webkit_dom_document_get_document_element (document)), TRUE);
- body = WEBKIT_DOM_NODE (webkit_dom_element_query_selector (
+ node = WEBKIT_DOM_NODE (webkit_dom_element_query_selector (
+ WEBKIT_DOM_ELEMENT (document_clone), "style#-x-evo-quote-style", NULL));
+ if (node)
+ remove_node (node);
+ node = WEBKIT_DOM_NODE (webkit_dom_element_query_selector (
WEBKIT_DOM_ELEMENT (document_clone), "body", NULL));
- process_elements (view, body, TRUE, FALSE, FALSE, NULL);
+ process_elements (view, node, TRUE, FALSE, FALSE, NULL);
html_content = webkit_dom_html_element_get_outer_html (
WEBKIT_DOM_HTML_ELEMENT (document_clone));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]