aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-08-15 20:34:13 +0800
committerTomas Popela <tpopela@redhat.com>2014-08-15 20:34:13 +0800
commit91805250658eca21f6c6b0a6909006052893cc29 (patch)
tree4415fad000a06e3f476bcde87c71be6ecad996e7
parentaf6f656c043f82a7fb559b695f27113695289679 (diff)
downloadgsoc2013-evolution-91805250658eca21f6c6b0a6909006052893cc29.tar.gz
gsoc2013-evolution-91805250658eca21f6c6b0a6909006052893cc29.tar.zst
gsoc2013-evolution-91805250658eca21f6c6b0a6909006052893cc29.zip
EHTMLEditorView - Remove classes that were used for marking the BR elements from converted text
-rw-r--r--e-util/e-html-editor-view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 0b3212c184..be378b471f 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -4313,6 +4313,13 @@ html_editor_view_process_document_from_convertor (EHTMLEditorView *view,
NULL);
}
+ paragraph = webkit_dom_document_query_selector (document, "br.-x-evo-last-br", NULL);
+ if (paragraph)
+ webkit_dom_element_remove_attribute (paragraph, "class");
+ paragraph = webkit_dom_document_query_selector (document, "br.-x-evo-first-br", NULL);
+ if (paragraph)
+ webkit_dom_element_remove_attribute (paragraph, "class");
+
if (!e_html_editor_view_get_html_mode (view))
e_html_editor_selection_wrap_paragraphs_in_document (
selection, document);