aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-06-23 22:43:56 +0800
committerTomas Popela <tpopela@redhat.com>2014-06-23 22:47:42 +0800
commita4fb4775482c4dc728c456510331175170f9f7b1 (patch)
tree5a463aea643f8f39071d4ffff4958392e9c3be53
parentd84a774feba5d2e21ae7601b0db02b241c149a9b (diff)
downloadgsoc2013-evolution-a4fb4775482c4dc728c456510331175170f9f7b1.tar
gsoc2013-evolution-a4fb4775482c4dc728c456510331175170f9f7b1.tar.gz
gsoc2013-evolution-a4fb4775482c4dc728c456510331175170f9f7b1.tar.bz2
gsoc2013-evolution-a4fb4775482c4dc728c456510331175170f9f7b1.tar.lz
gsoc2013-evolution-a4fb4775482c4dc728c456510331175170f9f7b1.tar.xz
gsoc2013-evolution-a4fb4775482c4dc728c456510331175170f9f7b1.tar.zst
gsoc2013-evolution-a4fb4775482c4dc728c456510331175170f9f7b1.zip
EHTMLEditorView - Insert quote symbols before HTML element when it has no previous sibling
This fixes the situation when the paragraphs with just i.e. anchor were not properly quoted.
-rw-r--r--e-util/e-html-editor-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 0b83d0efac..5255be54bb 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3898,6 +3898,10 @@ quote_plain_text_recursive (WebKitDOMDocument *document,
element_has_tag (WEBKIT_DOM_ELEMENT (node), "u");
if (is_html_node) {
+ if (!prev_sibling)
+ insert_quote_symbols_before_node (
+ document, node, quote_level, FALSE);
+
if (WEBKIT_DOM_IS_HTMLBR_ELEMENT (prev_sibling))
insert_quote_symbols_before_node (
document, prev_sibling, quote_level, TRUE);