aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/e-html-editor-view.c8
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 a9dd979dfd..2b21fa04a3 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");
+ }
}
}
}