diff options
author | Dan Winship <danw@src.gnome.org> | 2001-06-16 00:55:10 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-06-16 00:55:10 +0800 |
commit | b461c51f7c9c42d5933572a7c565462c252760c9 (patch) | |
tree | 0207b7cc1754b74b2c8cb6882291bb24e0d91897 /mail/mail-display.c | |
parent | ad95c6e7b205cabbed6e2ede170f6da02e8521d7 (diff) | |
download | gsoc2013-evolution-b461c51f7c9c42d5933572a7c565462c252760c9.tar gsoc2013-evolution-b461c51f7c9c42d5933572a7c565462c252760c9.tar.gz gsoc2013-evolution-b461c51f7c9c42d5933572a7c565462c252760c9.tar.bz2 gsoc2013-evolution-b461c51f7c9c42d5933572a7c565462c252760c9.tar.lz gsoc2013-evolution-b461c51f7c9c42d5933572a7c565462c252760c9.tar.xz gsoc2013-evolution-b461c51f7c9c42d5933572a7c565462c252760c9.tar.zst gsoc2013-evolution-b461c51f7c9c42d5933572a7c565462c252760c9.zip |
We can't output "<html>" and "</html>" here because it gets called
* mail-format.c (mail_format_mime_message): We can't output
"<html>" and "</html>" here because it gets called recursively to
display message/rfc822 subparts.
* mail-display.c (mail_display_redisplay): Move rodo's html header
changes from mail_format_mime_message to here.
svn path=/trunk/; revision=10252
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index 1025b0af7c..f0957b5234 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -1130,8 +1130,6 @@ clear_data (CamelObject *object, gpointer event_data, gpointer user_data) void mail_display_redisplay (MailDisplay *md, gboolean unscroll) { - printf("redisplaying\n"); - md->last_active = NULL; md->stream = gtk_html_begin (GTK_HTML (md->html)); if (!unscroll) { @@ -1139,7 +1137,8 @@ mail_display_redisplay (MailDisplay *md, gboolean unscroll) GTK_HTML (md->html)->engine->newPage = FALSE; } - mail_html_write (md->html, md->stream, "%s%s", HTML_HEADER, "<BODY>\n"); + mail_html_write (md->html, md->stream, "<!doctype html public \"-//W3C//DTD HTML 4.0 TRANSITIONAL//EN\">\n<html>\n<head>\n<meta name=\"generator\" content=\"Evolution Mail Component\">\n</head>\n"); + mail_html_write (md->html, md->stream, "<body marginwidth=0 marginheight=0>\n"); if (md->current_message) { MailConfigDisplayStyle style = mail_config_get_message_display_style (); @@ -1151,7 +1150,7 @@ mail_display_redisplay (MailDisplay *md, gboolean unscroll) } } - mail_html_write (md->html, md->stream, "</BODY></HTML>\n"); + mail_html_write (md->html, md->stream, "</body></html>\n"); gtk_html_end (md->html, md->stream, GTK_HTML_STREAM_OK); md->stream = NULL; } |