From 4f19e51bc5bb7d91ffa49297c5092dfe9f1be170 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Thu, 31 Jul 2014 12:00:40 +0200 Subject: EHTMLEditorView - Don't insert the new line character, when the empty line in the quoted content is on the end of it --- e-util/e-html-editor-view.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index a9dd979dfd..2b21fa04a3 100644 --- a/e-util/e-html-editor-view.c +++ b/e-util/e-html-editor-view.c @@ -5880,10 +5880,12 @@ process_elements (EHTMLEditorView *view, WebKitDOMNode *parent; parent = webkit_dom_node_get_parent_node (child); - parent = webkit_dom_node_get_parent_node (parent); + if (webkit_dom_node_get_next_sibling (parent)) { + parent = webkit_dom_node_get_parent_node (parent); - if (is_citation_node (parent)) - g_string_append (buffer, changing_mode ? "
" : "\n"); + if (is_citation_node (parent)) + g_string_append (buffer, changing_mode ? "
" : "\n"); + } } } } -- cgit v1.2.3