[evolution] EHTMLEditorView - Don't insert the new line character, when the empty line in the quoted content is



commit 4f19e51bc5bb7d91ffa49297c5092dfe9f1be170
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Jul 31 12:00:40 2014 +0200

    EHTMLEditorView - Don't insert the new line character, when the empty line in the quoted content is on 
the end of it

 e-util/e-html-editor-view.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index a9dd979..2b21fa0 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -5880,10 +5880,12 @@ process_elements (EHTMLEditorView *view,
                                        WebKitDOMNode *parent;
 
                                        parent = webkit_dom_node_get_parent_node (child);
-                                       parent = webkit_dom_node_get_parent_node (parent);
+                                       if (webkit_dom_node_get_next_sibling (parent)) {
+                                               parent = webkit_dom_node_get_parent_node (parent);
 
-                                       if (is_citation_node (parent))
-                                               g_string_append (buffer, changing_mode ? "<br>" : "\n");
+                                               if (is_citation_node (parent))
+                                                       g_string_append (buffer, changing_mode ? "<br>" : 
"\n");
+                                       }
                                }
                        }
                }


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