diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-07-18 17:08:59 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-07-21 20:17:19 +0800 |
commit | 9de43b4e739bd84576c1fe98cbe392a0265c24b1 (patch) | |
tree | 5cd195e9600754dcdbdfbc2863040d6eb43f1e60 | |
parent | bcc3a1c7e641830622690116907c02b7f89183d7 (diff) | |
download | gsoc2013-evolution-9de43b4e739bd84576c1fe98cbe392a0265c24b1.tar.gz gsoc2013-evolution-9de43b4e739bd84576c1fe98cbe392a0265c24b1.tar.zst gsoc2013-evolution-9de43b4e739bd84576c1fe98cbe392a0265c24b1.zip |
EHTMLEditorView - Move the paragraph from citation into the body only when the backspace is pressed in the beginning of it
-rw-r--r-- | e-util/e-html-editor-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |