[evolution] EHTMLEditorView - Don't try to wrap the already wrapped blocks



commit f54c5d27c3b5160b3a08d885fe5c30b52a690331
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Jul 21 16:53:31 2015 +0200

    EHTMLEditorView - Don't try to wrap the already wrapped blocks

 e-util/e-html-editor-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 3255773..428b44e 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -9306,7 +9306,8 @@ process_content_for_plain_text (EHTMLEditorView *view)
                                }
                                item = next_item;
                        }
-               } else {
+               } else if (!webkit_dom_element_query_selector (WEBKIT_DOM_ELEMENT (paragraph), 
".-x-evo-wrap-br,.-x-evo-quoted", NULL)) {
+                       /* Dont't try to wrap the already wrapped content. */
                        e_html_editor_selection_wrap_paragraph (
                                selection, WEBKIT_DOM_ELEMENT (paragraph));
                }


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