]> git.deb.at Git - pkg/abook.git/commitdiff
html filter update
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Thu, 7 Feb 2002 21:28:59 +0000 (21:28 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Thu, 7 Feb 2002 21:28:59 +0000 (21:28 +0000)
ChangeLog
filter.c

index 2b65755e37dc080cab3ef2eee86aa93bc0efb9f8..0e188aadcaa2f77cb2a3f191027a810c0734250e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2002-xx-xx
  - abook can be compiled with g++
  - attempt to improve --datafile behavior
+ - html filter update (Morten Brix Pedersen)
 
 2002-02-04
  - use getopt to parse command line (also new options added)
index ad80f45ca61ab0e28b031368ebe46322f28b33ce..1d42a28bde23df9c3f89e3c0fce323e93d03c1d1 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -820,14 +820,13 @@ html_export_write_head(FILE *out, int extra_column)
 {
        char *realname = get_real_name();
 
-       fprintf(out, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n");
-       fprintf(out, "<html>\n<head>\n  <title>%s's addressbook</title>",
-                       realname );
+       fprintf(out, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n");
+       fprintf(out, "<html>\n<head>\n <title>%s's addressbook</title>", realname );
        fprintf(out, "\n</head>\n<body>\n");
        fprintf(out, "\n<h2>%s's addressbook</h2>\n", realname );
        fprintf(out, "<br><br>\n\n");
 
-       fprintf(out, "<center><table border>\n");
+       fprintf(out, "<table border=\"1\" align=\"center\">\n");
        fprintf(out, "\n<tr><th>Name<th>E-mail address(es)<th>%s</tr>\n\n",
                        abook_fields[extra_column].name);
 
@@ -837,7 +836,7 @@ html_export_write_head(FILE *out, int extra_column)
 static void
 html_export_write_tail(FILE *out)
 {
-       fprintf(out, "\n</table></center>\n");
+       fprintf(out, "\n</table>\n");
        fprintf(out, "\n</body>\n</html>\n");
 }