--- psiconv/trunk/program/psiconv/gen_html4.c 1999/12/02 17:18:55 34 +++ psiconv/trunk/program/psiconv/gen_html4.c 2000/10/21 00:49:13 53 @@ -447,9 +447,10 @@ fputs("}\n", of); } -static int psiconv_gen_html4(FILE * of, const psiconv_file file, +static int psiconv_gen_html4(const char *filename, const psiconv_file file, const char *dest) { + FILE * of; int i; psiconv_paragraph para; psiconv_word_style normal, sty; @@ -459,9 +460,12 @@ wf = file->file; else { /* Fall back on the normal HTML generator */ - return psiconv_gen_html(of,file,dest); + return psiconv_gen_html(filename,file,dest); } + if (! (of = fopen(filename,"w"))) + return -1; + fputs("", of); fputs("\n\n\n \n", of); @@ -491,7 +495,8 @@ fput_para(of, para, wf); } fputs("\n\n", of); - return 0; + + return fclose(of); } static struct psiconv_fileformat ff =