aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-06-18 22:41:45 +0800
committerDan Winship <danw@src.gnome.org>2001-06-18 22:41:45 +0800
commit3be10cec05ab5c8376339b8529af173d01d1f39b (patch)
treee4455aaf643dc2beed524d029132553dcae16050 /mail
parente905364beee184b99637029de7151b43339b2e1c (diff)
downloadgsoc2013-evolution-3be10cec05ab5c8376339b8529af173d01d1f39b.tar
gsoc2013-evolution-3be10cec05ab5c8376339b8529af173d01d1f39b.tar.gz
gsoc2013-evolution-3be10cec05ab5c8376339b8529af173d01d1f39b.tar.bz2
gsoc2013-evolution-3be10cec05ab5c8376339b8529af173d01d1f39b.tar.lz
gsoc2013-evolution-3be10cec05ab5c8376339b8529af173d01d1f39b.tar.xz
gsoc2013-evolution-3be10cec05ab5c8376339b8529af173d01d1f39b.tar.zst
gsoc2013-evolution-3be10cec05ab5c8376339b8529af173d01d1f39b.zip
(mail_format_raw_message): Add padding to match the formatted
display. svn path=/trunk/; revision=10262
Diffstat (limited to 'mail')
-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 *