aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorLarry Ewing <lewing@src.gnome.org>2003-12-11 10:26:03 +0800
committerLarry Ewing <lewing@src.gnome.org>2003-12-11 10:26:03 +0800
commitb05794f797b0c92a0080059964948f38e00a25d9 (patch)
tree2001ae78c96608c8fa36fdb9fecd1ac77f0f5f9d /mail
parentdf40bc5262453695491c0a6501c8cfcc12c7be4e (diff)
downloadgsoc2013-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')
-rw-r--r--mail/ChangeLog2
-rw-r--r--mail/em-format-html.c12
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