--- psiconv/trunk/program/psiconv/gen_html4.c 1999/10/11 19:17:17 14 +++ psiconv/trunk/program/psiconv/gen_html4.c 1999/12/02 17:18:55 34 @@ -26,6 +26,7 @@ #include "data.h" #include "list.h" #include "gen.h" +#include "psiconv.h" #ifndef TRUE #define TRUE (0==0) @@ -446,7 +447,8 @@ fputs("}\n", of); } -void psiconv_gen_html4(FILE * of, psiconv_file file) +static int psiconv_gen_html4(FILE * of, const psiconv_file file, + const char *dest) { int i; psiconv_paragraph para; @@ -457,8 +459,7 @@ wf = file->file; else { /* Fall back on the normal HTML generator */ - psiconv_gen_html(of,file); - return; + return psiconv_gen_html(of,file,dest); } fputs("", of); @@ -490,5 +491,18 @@ fput_para(of, para, wf); } fputs("\n\n", of); + return 0; +} + +static struct psiconv_fileformat ff = + { + "HTML4", + "HTML 4.0 with cascading style sheets", + psiconv_gen_html4 + }; + +void init_html4(void) +{ + psiconv_list_add(fileformat_list,&ff); }