[evolution] EHTMLEditorView - Avoid plain text quote characters to be inserted in HTML mode



commit 00cc3c0527464922b38468ac6fbcc3c639cb7a49
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Sep 8 09:14:41 2015 +0200

    EHTMLEditorView - Avoid plain text quote characters to be inserted in HTML mode
    
    Pressing the Backspace key in the beginning of a quoted line could insert plain
    text quote characters even when we are in HTML mode.

 e-util/e-html-editor-view.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index bd3849c..db30d06 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -4081,11 +4081,13 @@ change_quoted_block_to_normal (EHTMLEditorView *view)
                                NULL);
                }
 
-               block = e_html_editor_selection_wrap_paragraph_length (
-                       selection, block, length);
-               webkit_dom_node_normalize (WEBKIT_DOM_NODE (block));
-               e_html_editor_view_quote_plain_text_element_after_wrapping (
-                       document, block, citation_level - 1);
+               if (!view->priv->html_mode) {
+                       block = e_html_editor_selection_wrap_paragraph_length (
+                               selection, block, length);
+                       webkit_dom_node_normalize (WEBKIT_DOM_NODE (block));
+                       e_html_editor_view_quote_plain_text_element_after_wrapping (
+                               document, block, citation_level - 1);
+               }
        }
 
        if (ev) {


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