aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2001-03-26 17:41:33 +0800
committerRadek Doulik <rodo@src.gnome.org>2001-03-26 17:41:33 +0800
commitab54218f6469377dda71786decba73c8598afecf (patch)
tree9e2bdcde84ff91128b4264bc7158a302f312fefa
parenta6cc0bd7a2624b167b7be9dd76f6b974e9e59c4d (diff)
downloadgsoc2013-evolution-ab54218f6469377dda71786decba73c8598afecf.tar
gsoc2013-evolution-ab54218f6469377dda71786decba73c8598afecf.tar.gz
gsoc2013-evolution-ab54218f6469377dda71786decba73c8598afecf.tar.bz2
gsoc2013-evolution-ab54218f6469377dda71786decba73c8598afecf.tar.lz
gsoc2013-evolution-ab54218f6469377dda71786decba73c8598afecf.tar.xz
gsoc2013-evolution-ab54218f6469377dda71786decba73c8598afecf.tar.zst
gsoc2013-evolution-ab54218f6469377dda71786decba73c8598afecf.zip
clear name and email data after each address
2001-03-26 Radek Doulik <rodo@ximian.com> * mail-format.c (write_address): clear name and email data after each address svn path=/trunk/; revision=8936
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-format.c16
2 files changed, 13 insertions, 8 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 0d1f296a19..87901893bb 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-26 Radek Doulik <rodo@ximian.com>
+
+ * mail-format.c (write_address): clear name and email data after
+ each address
+
2001-03-25 Dan Winship <danw@ximian.com>
* component-factory.c (unref_standard_folders): Fix a bug in this
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 83c15ece17..4957d01c27 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -627,7 +627,7 @@ static void
write_address(MailDisplay *md, const CamelInternetAddress *addr, const char *field_name, int flags)
{
const char *name, *email;
- gboolean name_set = FALSE, mail_set = FALSE;
+ gboolean name_set, mail_set;
gint i;
if (addr == NULL || !camel_internet_address_get (addr, 0, NULL, NULL))
@@ -644,6 +644,7 @@ write_address(MailDisplay *md, const CamelInternetAddress *addr, const char *fie
mail_html_write (md->html, md->stream, i ? ",<B> </B> " : "<td>");
mail_html_write (md->html, md->stream, " ");
+ name_set = mail_set = FALSE;
if (name && *name) {
mail_html_write (md->html, md->stream,
"<!--+GtkHTML:<DATA class=\"Text\" key=\"name\" value=\"%s\">-->",
@@ -665,17 +666,16 @@ write_address(MailDisplay *md, const CamelInternetAddress *addr, const char *fie
name && *name ? "&lt;" : "",
email,
name && *name ? "&gt;" : "");
+ if (name_set)
+ mail_html_write (md->html, md->stream,
+ "<!--+GtkHTML:<DATA class=\"Text\" clear=\"name\">-->");
+ if (mail_set)
+ mail_html_write (md->html, md->stream,
+ "<!--+GtkHTML:<DATA class=\"Text\" clear=\"email\">-->");
}
++i;
}
- if (name_set)
- mail_html_write (md->html, md->stream,
- "<!--+GtkHTML:<DATA class=\"Text\" clear=\"name\">-->");
- if (mail_set)
- mail_html_write (md->html, md->stream,
- "<!--+GtkHTML:<DATA class=\"Text\" clear=\"email\">-->");
-
mail_html_write (md->html, md->stream, "</td></tr>"); /* Finish up the table row */
}