aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog2
-rw-r--r--mail/mail-format.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 3d6e4d168e..5f91a2e73d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -33,6 +33,8 @@
* mail-format.c (mail_format_mime_message): We can't output
"<html>" and "</html>" here because it gets called recursively to
display message/rfc822 subparts.
+ (mail_format_raw_message): Add padding to match the formatted
+ display.
* mail-display.c (mail_display_redisplay): Move rodo's html header
changes from mail_format_mime_message to here.
diff --git a/mail/mail-format.c b/mail/mail-format.c
index c195579e9a..8d31328153 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -188,13 +188,15 @@ mail_format_raw_message (CamelMimeMessage *mime_message, MailDisplay *md)
g_return_if_fail (CAMEL_IS_MIME_MESSAGE (mime_message));
+ mail_html_write (md->html, md->stream, "<table cellspacing=0 cellpadding=10 width=\"100%%\"><tr><td><tt>\n");
+
text = get_data_wrapper_text (CAMEL_DATA_WRAPPER (mime_message));
html = e_text_to_html (text, E_TEXT_TO_HTML_CONVERT_NL | E_TEXT_TO_HTML_CONVERT_SPACES | E_TEXT_TO_HTML_ESCAPE_8BIT);
- gtk_html_write (md->html, md->stream, "<tt>", 4);
+ g_free (text);
gtk_html_write (md->html, md->stream, html, strlen (html));
- gtk_html_write (md->html, md->stream, "</tt>", 5);
g_free (html);
- g_free (text);
+
+ mail_html_write (md->html, md->stream, "</tt></td></tr></table>");
}
static const char *