diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-format.c | 11 |
2 files changed, 10 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 2547011c7a..b8f2c02556 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2002-01-30 Radek Doulik <rodo@ximian.com> + + * mail-format.c (handle_text_plain_flowed): print quoted text in + italic + 2002-01-30 Not Zed <NotZed@Ximian.com> * component-factory.c (create_component): re-enable popup menu. diff --git a/mail/mail-format.c b/mail/mail-format.c index ea200f5f30..ff0bfd2c63 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -1260,10 +1260,6 @@ handle_text_plain_flowed (char *buf, MailDisplay *md, GtkHTML *html, GtkHTMLStre int prevquoting = 0, quoting, len, br_pending = 0; guint32 citation_color = mail_config_get_citation_color (); - /* When printing, do citations in black -- grey tends to be hard to read. */ - if (md->printing) - citation_color = 0xffffff; - mail_html_write (html, stream, "\n<!-- text/plain, flowed -->\n" "<table cellspacing=0 cellpadding=10 width=\"100%\"><tr><td>\n<tt>\n"); @@ -1279,7 +1275,10 @@ handle_text_plain_flowed (char *buf, MailDisplay *md, GtkHTML *html, GtkHTMLStre quoting++; if (quoting != prevquoting) { if (prevquoting == 0) { - gtk_html_stream_printf (stream, "<font color=\"#%06x\">", citation_color); + if (md->printing) + mail_html_write (html, stream, "<i>"); + else + gtk_html_stream_printf (stream, "<font color=\"#%06x\">", citation_color); if (br_pending) br_pending--; } @@ -1292,7 +1291,7 @@ handle_text_plain_flowed (char *buf, MailDisplay *md, GtkHTML *html, GtkHTMLStre prevquoting--; } if (quoting == 0) { - mail_html_write (html, stream, "</font>\n"); + mail_html_write (html, stream, md->printing ? "</i>" : "</font>\n"); if (br_pending) br_pending--; } |