(mail_format_raw_message): Add padding to match the formatted
display. svn path=/trunk/; revision=10262
This commit is contained in:
@ -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.
|
||||
|
||||
@ -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);
|
||||
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);
|
||||
gtk_html_write (md->html, md->stream, html, strlen (html));
|
||||
g_free (html);
|
||||
|
||||
mail_html_write (md->html, md->stream, "</tt></td></tr></table>");
|
||||
}
|
||||
|
||||
static const char *
|
||||
|
||||
Reference in New Issue
Block a user