diff options
author | Larry Ewing <lewing@src.gnome.org> | 2003-12-11 10:26:03 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2003-12-11 10:26:03 +0800 |
commit | b05794f797b0c92a0080059964948f38e00a25d9 (patch) | |
tree | 2001ae78c96608c8fa36fdb9fecd1ac77f0f5f9d /mail/em-format-html.c | |
parent | df40bc5262453695491c0a6501c8cfcc12c7be4e (diff) | |
download | gsoc2013-evolution-b05794f797b0c92a0080059964948f38e00a25d9.tar.gz gsoc2013-evolution-b05794f797b0c92a0080059964948f38e00a25d9.tar.zst gsoc2013-evolution-b05794f797b0c92a0080059964948f38e00a25d9.zip |
(efh_text_enriched): add table around the enriched part so it
matches html and text modes.
svn path=/trunk/; revision=23922
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r-- | mail/em-format-html.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c index fa7abad068..db881e17a1 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -759,11 +759,19 @@ efh_text_enriched(EMFormatHTML *efh, CamelStream *stream, CamelMimePart *part, E camel_stream_filter_add(filtered_stream, enriched); camel_object_unref(enriched); - camel_stream_write_string(stream, EFH_TABLE_OPEN "<tr><td><tt>\n"); + camel_stream_printf (stream, + "<table bgcolor=\"#%06x\" cellspacing=0 cellpadding=1 width=100%%><tr><td>\n" + "<table bgcolor=\"#%06x\" cellspacing=0 cellpadding=0 width=100%%><tr><td>\n" + "<table cellspacing=0 cellpadding=10><td><tr>\n", + efh->frame_colour & 0xffffff, efh->content_colour & 0xffffff); + em_format_format_text((EMFormat *)efh, (CamelStream *)filtered_stream, dw); - camel_stream_write_string(stream, "</tt></td></tr></table>\n"); camel_object_unref(filtered_stream); + camel_stream_write_string(stream, + "</td></tr></table>\n" + "</td></tr></table>\n" + "</td></tr></table>\n"); } static void |