[evolution/wip/webkit-composer: 919/966] EEditorWidget: Change processing logic of BR elements to be the same as for the rest of elements



commit 931ea6f60e5b1442eb7ebc7f570ee3ece29b3669
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 19 10:27:36 2014 +0100

    EEditorWidget: Change processing logic of BR elements to be the same as for the rest of elements

 e-util/e-editor-widget.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index 92fd0a8..c9ff3a5 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -4398,10 +4398,11 @@ process_elements (EEditorWidget *widget,
                                remove_evolution_attributes (WEBKIT_DOM_ELEMENT (child));
                }
 
-               if (to_plain_text) {
-                       /* Insert new line when we hit BR element */
-                       if (WEBKIT_DOM_IS_HTMLBR_ELEMENT (child))
+               if (WEBKIT_DOM_IS_HTMLBR_ELEMENT (child)) {
+                       if (to_plain_text) {
+                               /* Insert new line when we hit BR element */
                                g_string_append (buffer, changing_mode ? "<br>" : "\n");
+                       }
                }
  next:
                if (webkit_dom_node_has_child_nodes (child) && !skip_node)


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