[evolution] EHTMLEditorView - Move the paragraph from citation into the body only when the backspace is pressed



commit 9de43b4e739bd84576c1fe98cbe392a0265c24b1
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Jul 18 11:08:59 2014 +0200

    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 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 a47c5c8..4bea1ab 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]