[evolution/gnome-3-22] Bug 775565 - Pasting long text as citation is incorrectly formatted with line wrapping



commit 022f4e2c901707c69405d13b58fe54471845678b
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Dec 6 17:21:28 2016 +0100

    Bug 775565 - Pasting long text as citation is incorrectly formatted with line wrapping
    
    Only wrap the block if it's not a preformatted one.

 .../web-extension/e-editor-dom-functions.c         |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-dom-functions.c 
b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index 2a7529f..c8b7e90 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -5474,7 +5474,8 @@ e_editor_dom_quote_and_insert_text_into_selection (EEditorPage *editor_page,
                while (node) {
                        WebKitDOMNode *next_sibling;
 
-                       node = WEBKIT_DOM_NODE (e_editor_dom_wrap_paragraph_length (editor_page, 
WEBKIT_DOM_ELEMENT (node), word_wrap_length - 2));
+                       if (!WEBKIT_DOM_IS_HTML_PRE_ELEMENT (node))
+                               node = WEBKIT_DOM_NODE (e_editor_dom_wrap_paragraph_length (editor_page, 
WEBKIT_DOM_ELEMENT (node), word_wrap_length - 2));
 
                        webkit_dom_node_normalize (node);
                        e_editor_dom_quote_plain_text_element_after_wrapping (editor_page, WEBKIT_DOM_ELEMENT 
(node), 1);


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