From 3cdb643ec2d4e87eb3508043915b5f7b18a04cdb Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Tue, 10 Jun 2014 13:02:20 +0200 Subject: EHTMLEditor: Fix various bugs in block in/undent Fix the wrong position of caret when in/undenting empty block and don't lose spell checked words when in/undenting. Also don't insert unnecessary empty lines into plain text version of message when processing indented block. --- e-util/e-html-editor-view.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'e-util/e-html-editor-view.c') diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index 4ad98b2fd9..b2b51cf9e6 100644 --- a/e-util/e-html-editor-view.c +++ b/e-util/e-html-editor-view.c @@ -4602,11 +4602,7 @@ process_elements (EHTMLEditorView *view, * signature we are not adding the BR element */ if (!next_sibling) add_br = FALSE; - - if (element_has_class (webkit_dom_node_get_parent_element (node), "-x-evo-indented")) - add_br = FALSE; - - if (next_sibling && WEBKIT_DOM_IS_HTML_DIV_ELEMENT (next_sibling)) { + else if (next_sibling && WEBKIT_DOM_IS_HTML_DIV_ELEMENT (next_sibling)) { if (webkit_dom_element_query_selector ( WEBKIT_DOM_ELEMENT (next_sibling), "span.-x-evo-signature", NULL)) { -- cgit v1.2.3