From a4fb4775482c4dc728c456510331175170f9f7b1 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Mon, 23 Jun 2014 16:43:56 +0200 Subject: 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. --- e-util/e-html-editor-view.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3