aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-editor-view.c
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-07-31 18:00:40 +0800
committerTomas Popela <tpopela@redhat.com>2014-07-31 18:00:40 +0800
commit4f19e51bc5bb7d91ffa49297c5092dfe9f1be170 (patch)
treee59e2cbe1de717d5e67efa0baf2f46894c8d7231 /e-util/e-html-editor-view.c
parenta331e7edfc77b3fe0585a7b077726b87f83bf0b2 (diff)
downloadgsoc2013-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.c8
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");
+ }
}
}
}