From 9de43b4e739bd84576c1fe98cbe392a0265c24b1 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Fri, 18 Jul 2014 11:08:59 +0200 Subject: EHTMLEditorView - Move the paragraph from citation into the body only when the backspace is pressed in the beginning of it --- e-util/e-html-editor-view.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index a47c5c8209..4bea1abdaf 100644 --- a/e-util/e-html-editor-view.c +++ b/e-util/e-html-editor-view.c @@ -2056,6 +2056,10 @@ change_quoted_block_to_normal (EHTMLEditorView *view) if (WEBKIT_DOM_IS_ELEMENT (prev_sibling)) success = element_has_class ( WEBKIT_DOM_ELEMENT (prev_sibling), "-x-evo-quoted"); + /* We really have to be in the beginning of paragraph and + * not on the beginning of some line in the paragraph */ + if (success && webkit_dom_node_get_previous_sibling (prev_sibling)) + success = FALSE; } if (view->priv->html_mode) -- cgit v1.2.3