[evolution/wip/webkit2] Bug 766796 - No space after double hyphen in autogenerated signature



commit 413859280f2cc70bda2532f0d1695f68e6377703
Author: Tomas Popela <tpopela redhat com>
Date:   Tue May 31 12:43:28 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.

 .../e-composer-private-dom-functions.c             |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/modules/webkit-content-editor/web-extension/e-composer-private-dom-functions.c 
b/modules/webkit-content-editor/web-extension/e-composer-private-dom-functions.c
index 91c17e7..a2d9768 100644
--- a/modules/webkit-content-editor/web-extension/e-composer-private-dom-functions.c
+++ b/modules/webkit-content-editor/web-extension/e-composer-private-dom-functions.c
@@ -451,8 +451,17 @@ dom_insert_signature (WebKitDOMDocument *document,
                        ;  /* skip */
                else if (e_util_strstrcase (signature_text, delim_nl) != NULL)
                        ;  /* skip */
-               else
-                       webkit_dom_element_set_inner_html (insert_signature_in, delim, NULL);
+               else {
+                       WebKitDOMElement *pre_delimiter;
+
+                       pre_delimiter = webkit_dom_document_create_element (document, "pre", NULL);
+                       webkit_dom_element_set_inner_html (
+                               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]