[evolution/gnome-3-18] Bug 759584 - Threading lost for some quotes lines in same paragraph after pressing Enter in quoted t



commit 998ff84ba741867bbc612334a92d73192b3c9ed0
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Jan 4 15:33:19 2016 +0100

    Bug 759584 - Threading lost for some quotes lines in same paragraph after pressing Enter in quoted text
    
    Don't end the wrapping when there is no sibling available, but when the current
    node can be wrapped further.

 e-util/e-html-editor-selection.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 4a2914d..d1c1933 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -6920,6 +6920,7 @@ wrap_lines (EHTMLEditorSelection *selection,
                                                        mark_and_remove_leading_space (document, nd);
 
                                                if (!webkit_dom_node_get_next_sibling (nd) &&
+                                                   length_left <= length_to_wrap &&
                                                    g_str_has_suffix (nd_content, " ")) {
                                                        mark_and_remove_trailing_space (document, nd);
                                                        no_sibling = TRUE;


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