diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-07-31 18:00:40 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-07-31 18:00:40 +0800 |
commit | 4f19e51bc5bb7d91ffa49297c5092dfe9f1be170 (patch) | |
tree | e59e2cbe1de717d5e67efa0baf2f46894c8d7231 /e-util/e-html-editor-view.c | |
parent | a331e7edfc77b3fe0585a7b077726b87f83bf0b2 (diff) | |
download | gsoc2013-evolution-4f19e51bc5bb7d91ffa49297c5092dfe9f1be170.tar gsoc2013-evolution-4f19e51bc5bb7d91ffa49297c5092dfe9f1be170.tar.gz gsoc2013-evolution-4f19e51bc5bb7d91ffa49297c5092dfe9f1be170.tar.bz2 gsoc2013-evolution-4f19e51bc5bb7d91ffa49297c5092dfe9f1be170.tar.lz gsoc2013-evolution-4f19e51bc5bb7d91ffa49297c5092dfe9f1be170.tar.xz gsoc2013-evolution-4f19e51bc5bb7d91ffa49297c5092dfe9f1be170.tar.zst gsoc2013-evolution-4f19e51bc5bb7d91ffa49297c5092dfe9f1be170.zip |
EHTMLEditorView - Don't insert the new line character, when the empty line in the quoted content is on the end of it
Diffstat (limited to 'e-util/e-html-editor-view.c')
-rw-r--r-- | e-util/e-html-editor-view.c | 8 |
1 files 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 ? "<br>" : "\n"); + if (is_citation_node (parent)) + g_string_append (buffer, changing_mode ? "<br>" : "\n"); + } } } } |