[evolution/wip/tpopela/freeze-fixes: 4/7] EHTMLEditorView - Some message text lost when replying on mail from GMail
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/tpopela/freeze-fixes: 4/7] EHTMLEditorView - Some message text lost when replying on mail from GMail
- Date: Wed, 18 Mar 2015 14:11:02 +0000 (UTC)
commit af2259220be2db968c8b9618a934a172f416cdf3
Author: Tomas Popela <tpopela redhat com>
Date: Wed Mar 18 13:59:25 2015 +0100
EHTMLEditorView - Some message text lost when replying on mail from GMail
e-util/e-html-editor-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 095464c..92faea3 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -1275,6 +1275,10 @@ repair_gmail_blockquotes (WebKitDOMDocument *document)
webkit_dom_element_remove_attribute (WEBKIT_DOM_ELEMENT (node), "class");
webkit_dom_element_remove_attribute (WEBKIT_DOM_ELEMENT (node), "style");
webkit_dom_element_set_attribute (WEBKIT_DOM_ELEMENT (node), "type", "cite", NULL);
+
+ if (!WEBKIT_DOM_IS_HTMLBR_ELEMENT (webkit_dom_node_get_last_child (node)))
+ webkit_dom_node_append_child (
+ node, WEBKIT_DOM_NODE (webkit_dom_document_create_element (document, "br",
NULL)), NULL);
g_object_unref (node);
}
g_object_unref (list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]