[evolution/gnome-3-20] Bug 766796 - No space after double hyphen in autogenerated signature



commit 8d624ffb32607fb78bab8228bcbadb8b57197402
Author: Tomas Popela <tpopela redhat com>
Date:   Thu May 26 16:38:38 2016 +0200

    Bug 766796 - No space after double hyphen in autogenerated signature
    
    The space is always there, but as it was not in the PRE element WebKit hide it.

 composer/e-composer-private.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 33fb951..54fd065 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -1145,9 +1145,17 @@ composer_load_signature_cb (EMailSignatureComboBox *combo_box,
                        ;  /* skip */
                else if (e_util_strstrcase (contents, delim_nl) != NULL)
                        ;  /* skip */
-               else
+               else {
+                       WebKitDOMElement *pre_delimiter;
+
+                       pre_delimiter = webkit_dom_document_create_element (document, "pre", NULL);
                        webkit_dom_html_element_set_inner_html (
-                               WEBKIT_DOM_HTML_ELEMENT (insert_signature_in), delim, NULL);
+                               WEBKIT_DOM_HTML_ELEMENT (pre_delimiter), delim, NULL);
+                       webkit_dom_node_append_child (
+                               WEBKIT_DOM_NODE (insert_signature_in),
+                               WEBKIT_DOM_NODE (pre_delimiter),
+                               NULL);
+               }
        }
 
        if (converted_signature) {


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