[evolution/wip/webkit2] EHTMLEditorView - Don't insert new line when we hit the empty paragraph



commit eb62a157307b97608e71fec88e272fa512c47057
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Mar 23 15:42:45 2015 +0100

    EHTMLEditorView - Don't insert new line when we hit the empty paragraph

 web-extensions/e-html-editor-view-dom-functions.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/web-extensions/e-html-editor-view-dom-functions.c 
b/web-extensions/e-html-editor-view-dom-functions.c
index cfeeba4..751ac36 100644
--- a/web-extensions/e-html-editor-view-dom-functions.c
+++ b/web-extensions/e-html-editor-view-dom-functions.c
@@ -5030,9 +5030,6 @@ process_elements (EHTMLEditorWebExtension *extension,
                                remove_base_attributes (WEBKIT_DOM_ELEMENT (child));
                                remove_evolution_attributes (WEBKIT_DOM_ELEMENT (child));
                        }
-                       if (!changing_mode && to_plain_text)
-                               if (!webkit_dom_node_has_child_nodes (child))
-                                       g_string_append (buffer, "\n");
                }
 
                /* Signature */
@@ -5061,7 +5058,6 @@ process_elements (EHTMLEditorWebExtension *extension,
                                        WEBKIT_DOM_HTML_ELEMENT (child));
                                g_string_append (buffer, content);
                                g_free (content);
-                               skip_node = TRUE;
                        }
                        skip_node = TRUE;
                        goto next;


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