diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-07-21 22:58:56 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-07-21 23:02:08 +0800 |
commit | 5a0dd1368efc607cea7c0190da7739f319c64a14 (patch) | |
tree | 9cb7528d364797e9008f3997bec2114308e579fa | |
parent | bcbd85f9879e60ef291913f74a4d7ecdd70f9e17 (diff) | |
download | gsoc2013-evolution-5a0dd1368efc607cea7c0190da7739f319c64a14.tar.gz gsoc2013-evolution-5a0dd1368efc607cea7c0190da7739f319c64a14.tar.zst gsoc2013-evolution-5a0dd1368efc607cea7c0190da7739f319c64a14.zip |
EHTMLEditorView - Don't put quote characters after the anchor when it is in the middle of the quoted text
-rw-r--r-- | e-util/e-html-editor-view.c | 10 |
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; |