[evolution/gnome-3-20] EHTMLEditorView - Plain text version of draft could lose formatting



commit f0dbb3a986056c1d35c070f36453e7ad49434ef1
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Jun 28 11:17:02 2016 +0200

    EHTMLEditorView - Plain text version of draft could lose formatting
    
    When generating a plain text version of the HTML draft we can use just the
    simplified conversion.

 e-util/e-html-editor-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 7a1da62..5bf878e 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -10490,7 +10490,7 @@ process_content_for_plain_text (EHTMLEditorView *view)
 
        /* If composer is in HTML mode we have to move the content to plain version */
        if (view->priv->html_mode) {
-               if (converted || is_from_new_message) {
+               if (converted || is_from_new_message || view->priv->is_message_from_draft) {
                        toggle_paragraphs_style_in_element (
                                view, WEBKIT_DOM_ELEMENT (source), FALSE);
                        remove_images_in_element (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]