diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 2 | ||||
-rw-r--r-- | mail/em-format-html.c | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index a2db32a3b8..4cb12cad6a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,6 +1,8 @@ 2003-12-10 Larry Ewing <lewing@ximian.com> * em-format-html.c: add text/x-patch as a plain type. + (efh_text_enriched): add table around the enriched part so it + matches html and text modes. 2003-12-10 Jeffrey Stedfast <fejj@ximian.com> 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 |