[evolution] Bug 772513 - Extra empty line at the top of a new mail



commit c749eca023864e4cfb3ce53a322a093a89cf9735
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Oct 6 16:47:42 2016 +0200

    Bug 772513 - Extra empty line at the top of a new mail
    
    Regression after commit 2a9becc. The first element in the BODY could be
    credentials, but paragraph as well. So if it's paragraph, don't create
    a new one.

 .../web-extension/e-composer-dom-functions.c       |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-composer-dom-functions.c 
b/modules/webkit-editor/web-extension/e-composer-dom-functions.c
index 32e517a..934e88c 100644
--- a/modules/webkit-editor/web-extension/e-composer-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-composer-dom-functions.c
@@ -122,7 +122,8 @@ move_caret_after_signature_inserted (EEditorPage *editor_page)
                        has_paragraphs_in_body = FALSE;
 
                /* Don't take the credentials into account. */
-               if (!webkit_dom_node_get_previous_sibling (node))
+               if (!webkit_dom_node_get_previous_sibling (node) &&
+                   !element_has_id (WEBKIT_DOM_ELEMENT (node), "-x-evo-input-start"))
                        has_paragraphs_in_body = FALSE;
        }
 


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