aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-03-23 18:56:58 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-03-23 18:56:58 +0800
commit3ab0a97a4ce870feba04b2e7a16c47ee60536969 (patch)
tree141b2d9c191a70b95ab2fabb5365645e41497ee2 /mail
parent6ee30271e20b004864b2c47b3dffbef451bdda03 (diff)
downloadgsoc2013-evolution-3ab0a97a4ce870feba04b2e7a16c47ee60536969.tar.gz
gsoc2013-evolution-3ab0a97a4ce870feba04b2e7a16c47ee60536969.tar.zst
gsoc2013-evolution-3ab0a97a4ce870feba04b2e7a16c47ee60536969.zip
use EM_FORMAT_HTML_VPAD
2004-03-23 Radek Doulik <rodo@ximian.com> * em-format-html-display.c (efhd_format_attachment): use EM_FORMAT_HTML_VPAD * em-format-html.h (EM_FORMAT_HTML_VPAD): added new define for vertical padding * em-format-html.c (efh_format_message): change padding table so that it works OK with fixed gtkhtml svn path=/trunk/; revision=25156
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog11
-rw-r--r--mail/em-format-html-display.c4
-rw-r--r--mail/em-format-html.c2
-rw-r--r--mail/em-format-html.h2
4 files changed, 16 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 4e66daad95..e8032ec751 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,14 @@
+2004-03-23 Radek Doulik <rodo@ximian.com>
+
+ * em-format-html-display.c (efhd_format_attachment): use
+ EM_FORMAT_HTML_VPAD
+
+ * em-format-html.h (EM_FORMAT_HTML_VPAD): added new define for
+ vertical padding
+
+ * em-format-html.c (efh_format_message): change padding table so
+ that it works OK with fixed gtkhtml
+
2004-03-23 Not Zed <NotZed@Ximian.com>
* em-format-html-display.c (efhd_attachment_popup): dont add the
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 577a539549..755d6b85bb 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -1470,7 +1470,7 @@ efhd_format_attachment(EMFormat *emf, CamelStream *stream, CamelMimePart *part,
info->snoop_mime_type = emf->snoop_mime_type;
camel_stream_write_string(stream,
- "<table height=6><tr><td><a></a></td></tr></table>\n"
+ EM_FORMAT_HTML_VPAD
"<table cellspacing=0 cellpadding=0><tr><td>"
"<table width=10 cellspacing=0 cellpadding=0>"
"<tr><td></td></tr></table></td>");
@@ -1491,7 +1491,7 @@ efhd_format_attachment(EMFormat *emf, CamelStream *stream, CamelMimePart *part,
camel_stream_write_string(stream,
"</font></td></tr><tr></table>\n"
- "<table height=6><tr><td><a></a></td></tr></table>\n");
+ EM_FORMAT_HTML_VPAD);
if (handle) {
if (info->shown)
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index c74ed0da0c..eed3d3e093 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -1660,7 +1660,7 @@ static void efh_format_message(EMFormat *emf, CamelStream *stream, CamelMedium *
if (!efh->hide_headers)
efh_format_headers(efh, stream, part);
- camel_stream_printf(stream, "<table height=6><tr><td><a></a></td></tr></table>\n");
+ camel_stream_printf(stream, EM_FORMAT_HTML_VPAD);
em_format_part(emf, stream, (CamelMimePart *)part);
if (emf->message != (CamelMimeMessage *)part)
diff --git a/mail/em-format-html.h b/mail/em-format-html.h
index 65c242a415..ec69dc5296 100644
--- a/mail/em-format-html.h
+++ b/mail/em-format-html.h
@@ -97,6 +97,8 @@ struct _EMFormatHTMLPObject {
#define EM_FORMAT_HTML_XMAILER_OTHER (1<<1)
#define EM_FORMAT_HTML_XMAILER_RUPERT (1<<2)
+#define EM_FORMAT_HTML_VPAD "<table cellspacing=0 cellpadding=3><tr><td><a name=\"padding\"></a></td></tr></table>\n"
+
struct _EMFormatHTML {
EMFormat format;