aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-editor-view.c
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-06-10 19:02:20 +0800
committerTomas Popela <tpopela@redhat.com>2014-06-10 19:02:20 +0800
commit3cdb643ec2d4e87eb3508043915b5f7b18a04cdb (patch)
tree8e455a0a9c5cec733561a0df63962b99b0324c46 /e-util/e-html-editor-view.c
parent1ab3eeec5ddc03584dbac05c6f4a0b8879faa000 (diff)
downloadgsoc2013-evolution-3cdb643ec2d4e87eb3508043915b5f7b18a04cdb.tar
gsoc2013-evolution-3cdb643ec2d4e87eb3508043915b5f7b18a04cdb.tar.gz
gsoc2013-evolution-3cdb643ec2d4e87eb3508043915b5f7b18a04cdb.tar.bz2
gsoc2013-evolution-3cdb643ec2d4e87eb3508043915b5f7b18a04cdb.tar.lz
gsoc2013-evolution-3cdb643ec2d4e87eb3508043915b5f7b18a04cdb.tar.xz
gsoc2013-evolution-3cdb643ec2d4e87eb3508043915b5f7b18a04cdb.tar.zst
gsoc2013-evolution-3cdb643ec2d4e87eb3508043915b5f7b18a04cdb.zip
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.
Diffstat (limited to 'e-util/e-html-editor-view.c')
-rw-r--r--e-util/e-html-editor-view.c6
1 files changed, 1 insertions, 5 deletions
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)) {