From: Jaakko Heinonen Date: Wed, 20 Jun 2001 07:48:17 +0000 (+0000) Subject: HTML filter update (Michael Wiedmann) X-Git-Tag: upstream/0.6.1~2^2~354 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=dc7bcc12ac9a3abea869169f5efea8222b8eb775;p=pkg%2Fabook.git HTML filter update (Michael Wiedmann) --- diff --git a/filter.c b/filter.c index 51985f6..5aa148c 100644 --- a/filter.c +++ b/filter.c @@ -820,10 +820,14 @@ html_export_database(FILE *out, struct db_enumerator e) db_enumerate_items(e) { get_first_email(tmp, e.item); - fprintf(out, "\n%s\n", - tmp, - database[e.item][NAME] ); - + if (*tmp) + fprintf(out, "\n%s\n", + tmp, + database[e.item][NAME] ); + else + fprintf(out, "\n%s>\n", + database[e.item][NAME] ); + fprintf(out, "%s\n%s\n", database[e.item][EMAIL], safe_str(database[e.item][extra_column]) );