[evolution/wip/webkit2] Bug 742955 - Missing text in a reply
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Bug 742955 - Missing text in a reply
- Date: Wed, 22 Apr 2015 12:48:31 +0000 (UTC)
commit 0ca0df8df934e92fee3e7ebe1a73a7f4632a0812
Author: Tomas Popela <tpopela redhat com>
Date: Mon Mar 23 14:14:33 2015 +0100
Bug 742955 - Missing text in a reply
In some cases we have to append the existing paragraph to the body before
appending the new one.
web-extensions/e-html-editor-view-dom-functions.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/e-html-editor-view-dom-functions.c
b/web-extensions/e-html-editor-view-dom-functions.c
index 38fe59d..4de62db 100644
--- a/web-extensions/e-html-editor-view-dom-functions.c
+++ b/web-extensions/e-html-editor-view-dom-functions.c
@@ -3245,6 +3245,9 @@ parse_html_into_paragraphs (WebKitDOMDocument *document,
}
if (g_strcmp0 (rest_to_insert, UNICODE_ZERO_WIDTH_SPACE) == 0) {
+ if (paragraph)
+ append_new_paragraph (blockquote, ¶graph);
+
paragraph = create_and_append_new_paragraph (
document, extension, blockquote, block, "<br>");
} else if (preserve_block) {
@@ -3274,9 +3277,13 @@ parse_html_into_paragraphs (WebKitDOMDocument *document,
g_free (html);
g_free (new_content);
- } else
+ } else {
+ if (paragraph)
+ append_new_paragraph (blockquote, ¶graph);
+
paragraph = create_and_append_new_paragraph (
document, extension, blockquote, block, rest_to_insert);
+ }
if (rest_to_insert && *rest_to_insert && preserve_block && paragraph) {
glong length = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]