--- a/pbm2png.c +++ b/pbm2png.c @@ -145,15 +145,13 @@ sprintf(string,"%s%d.html",basename,index); f=fopen(string,"w"); - fprintf(f,"%s\n",titlestring); + fprintf(f,"%s\n",titlestring); fprintf(f,"

%s, Page %d

\n",titlestring,index+pageoffset); fprintf(f,"

"); fprintf(f,"\n
"); + fprintf(f,""); fprintf(f,"
"); if (index) { - fprintf(f,"\n",basename,index-1); + fprintf(f,"\n",basename,index-1); } else { @@ -162,18 +160,15 @@ fprintf(f,""); if (index -\n",basename,index+1); + fprintf(f," \n",basename,index+1); } else { fprintf(f,"\n"); } - fprintf(f,"
-
"); - fprintf(f,"
",basename,index); + fprintf(f,"\n",basename,index); fprintf(f,""); fclose(f); } @@ -438,9 +433,8 @@ int a,z; if (argc<7){ - fprintf(stderr,"Usage: pbm2png - [starting_filenumber [invert]]\n"); - return 0; + fprintf(stderr,"Usage: pbm2png [starting_filenumber [invert]]\n"); + return 0; } dpi=atol(argv[1]); ppm=dpi*1000/25.4;