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



commit f5d01ca3042ca3672e1437949128bf589f865bb5
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Feb 26 12:27:05 2016 +0100

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

 .../composer/e-html-editor-view-dom-functions.c    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-view-dom-functions.c 
b/web-extensions/composer/e-html-editor-view-dom-functions.c
index 1b59ea1..e3082d8 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -6741,7 +6741,8 @@ dom_process_content_for_plain_text (WebKitDOMDocument *document,
                                }
                                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. */
                        dom_wrap_paragraph (
                                document, extension, WEBKIT_DOM_ELEMENT (paragraph));
                }


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