[evolution] EHTMLEditorView - Avoid double citation marks in plain text mode



commit 3cbd8e28c1cf5d6f5535b65bc9e2958b83df9c8a
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Oct 15 14:51:53 2014 +0200

    EHTMLEditorView - Avoid double citation marks in plain text mode
    
    Mark quoted plain text citations as quoted.

 e-util/e-html-editor-view.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 68f7a96..931a869 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3674,6 +3674,12 @@ e_html_editor_view_quote_plain_text_element (EHTMLEditorView *view,
        quote_plain_text_recursive (
                document, element_clone, element_clone, level);
 
+       /* Set citation as quoted */
+       if (is_citation_node (element_clone))
+               element_add_class (
+                       WEBKIT_DOM_ELEMENT (element_clone),
+                       "-x-evo-plaintext-quoted");
+
        /* Replace old element with one, that is quoted */
        webkit_dom_node_replace_child (
                webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (element)),


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