[evolution] Bug 775565 - Pasting long text as citation is incorrectly formatted with line wrapping
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 775565 - Pasting long text as citation is incorrectly formatted with line wrapping
- Date: Tue, 6 Dec 2016 16:28:12 +0000 (UTC)
commit 04d620a8554d04910285f4d57c3587c5eb68deab
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/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
b/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index 7ccbb4e..97ac306 100644
--- a/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/src/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -5472,7 +5472,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]