[evolution] Bug 740993 - Reply to an empty message breaks quotation
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 740993 - Reply to an empty message breaks quotation
- Date: Tue, 2 Dec 2014 15:47:40 +0000 (UTC)
commit b706c91904aac9ab9acaa43f051d870d5c5e28e3
Author: Tomas Popela <tpopela redhat com>
Date: Tue Dec 2 16:44:56 2014 +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.
e-util/e-html-editor-view.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index e0493f0..eaa1354 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -4719,6 +4719,9 @@ html_editor_convert_view_content (EHTMLEditorView *view,
}
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) {
@@ -4736,6 +4739,11 @@ html_editor_convert_view_content (EHTMLEditorView *view,
if (!empty)
parse_html_into_paragraphs (view, document, 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]