[evolution/wip/webkit2] Bug 740993 - Reply to an empty message breaks quotation
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Bug 740993 - Reply to an empty message breaks quotation
- Date: Wed, 22 Apr 2015 12:44:03 +0000 (UTC)
commit 5890a982923a34bd156ee9eba245cee54e791447
Author: Tomas Popela <tpopela redhat com>
Date: Mon Mar 23 13:01:21 2015 +0100
Bug 740993 - Reply to an empty message breaks quotation
When the message that we are replying on is empty, put empty paragraph in quotation.
web-extensions/e-html-editor-view-dom-functions.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/web-extensions/e-html-editor-view-dom-functions.c
b/web-extensions/e-html-editor-view-dom-functions.c
index 73c2e17..b297db5 100644
--- a/web-extensions/e-html-editor-view-dom-functions.c
+++ b/web-extensions/e-html-editor-view-dom-functions.c
@@ -3718,6 +3718,9 @@ dom_convert_content (WebKitDOMDocument *document,
}
remove_node (WEBKIT_DOM_NODE (wrapper));
+ if (inner_html && !*inner_html)
+ empty = TRUE;
+
/* FIXME XXX */
length = webkit_dom_element_get_child_element_count (WEBKIT_DOM_ELEMENT (body));
if (length <= 1) {
@@ -3735,6 +3738,11 @@ dom_convert_content (WebKitDOMDocument *document,
if (!empty)
parse_html_into_paragraphs (document, extension, content_wrapper, NULL, inner_html);
+ else
+ webkit_dom_node_append_child (
+ WEBKIT_DOM_NODE (content_wrapper),
+ WEBKIT_DOM_NODE (prepare_paragraph (selection, document, FALSE)),
+ NULL);
if (!cite_body) {
if (!empty) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]