* src/widgets/modest-gtkhtml-mime-part-view.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 15 May 2008 16:18:51 +0000 (16:18 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 15 May 2008 16:18:51 +0000 (16:18 +0000)
        * Add a CR to the end of all text messages, to force gtkhtml
          flush the string (and then show it properly). Should avoid
          problems with last lines of some messages (fixes NB#85443)

pmo-trunk-r4539

src/widgets/modest-gtkhtml-mime-part-view.c

index 077e174..03f75f6 100644 (file)
@@ -396,6 +396,7 @@ set_text_part (ModestGtkhtmlMimePartView *self, TnyMimePart *part)
        
        // FIXME: tinymail
        tny_mime_part_decode_to_stream ((TnyMimePart*)part, text_to_html_stream, NULL);
+       tny_stream_write (text_to_html_stream, "\n", 1);
        tny_stream_reset (text_to_html_stream);         
        
        g_object_unref (G_OBJECT(text_to_html_stream));