]> git.deb.at Git - pkg/abook.git/commitdiff
HTML filter update (Michael Wiedmann)
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 20 Jun 2001 07:48:17 +0000 (07:48 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 20 Jun 2001 07:48:17 +0000 (07:48 +0000)
filter.c

index 51985f6aeeed2a372918eee576b7cc82d47979f2..5aa148cf9a54629b3c27620c16a9bd3120b984dd 100644 (file)
--- 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, "<tr>\n<td><a href=\"mailto:%s\">%s</a>\n",
-                               tmp,
-                               database[e.item][NAME] );
-                               
+               if (*tmp)
+                   fprintf(out, "<tr>\n<td><a href=\"mailto:%s\">%s</a>\n",
+                           tmp,
+                           database[e.item][NAME] );
+               else
+                   fprintf(out, "<tr>\n<td>%s>\n",
+                           database[e.item][NAME] );
+
                fprintf(out, "<td>%s\n<td>%s\n",
                                database[e.item][EMAIL],
                                safe_str(database[e.item][extra_column]) );