[evolution] Paragraphs with just BR element could not be quoted properly



commit 8390814209ab65af04c1d970320ee22472e22eb7
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Aug 17 17:07:14 2016 +0200

    Paragraphs with just BR element could not be quoted properly

 .../web-extension/e-editor-dom-functions.c         |    6 +++++-
 1 files changed, 5 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 0a906e2..30f9f9d 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -4600,7 +4600,11 @@ quote_plain_text_recursive (WebKitDOMDocument *document,
                }
 
                if (WEBKIT_DOM_IS_HTML_BR_ELEMENT (node)) {
-                       move_next = TRUE;
+                       if (!prev_sibling && !next_sibling) {
+                               insert_quote_symbols_before_node (
+                                       document, node, quote_level, FALSE);
+                       } else
+                               move_next = TRUE;
                        goto next_node;
                }
 


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