aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-html-editor-view.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 945b60a3e6..0432a01426 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3157,10 +3157,14 @@ quote_plain_text_recursive (WebKitDOMDocument *document,
goto next_node;
}
- if (!WEBKIT_DOM_IS_HTMLBR_ELEMENT (node))
+ if (!WEBKIT_DOM_IS_HTMLBR_ELEMENT (node)) {
+ if (WEBKIT_DOM_IS_HTML_ANCHOR_ELEMENT (prev_sibling)) {
+ move_next = TRUE;
+ goto next_node;
+ }
goto not_br;
- else if (element_has_class (WEBKIT_DOM_ELEMENT (node), "-x-evo-first-br") ||
- element_has_class (WEBKIT_DOM_ELEMENT (node), "-x-evo-last-br")) {
+ } else if (element_has_class (WEBKIT_DOM_ELEMENT (node), "-x-evo-first-br") ||
+ element_has_class (WEBKIT_DOM_ELEMENT (node), "-x-evo-last-br")) {
quote_br_node (node, quote_level);
node = next_sibling;
skip_node = TRUE;