diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-08-15 20:34:13 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-08-15 20:34:13 +0800 |
commit | 91805250658eca21f6c6b0a6909006052893cc29 (patch) | |
tree | 4415fad000a06e3f476bcde87c71be6ecad996e7 | |
parent | af6f656c043f82a7fb559b695f27113695289679 (diff) | |
download | gsoc2013-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.c | 7 |
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); |