aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
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/mail-format.c
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/mail-format.c')
-rw-r--r--mail/mail-format.c8
1 files changed, 5 insertions, 3 deletions
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 *