Fixed some bugs in html output, that were causing errors in the W3C

HTML validator. As far as I can see, there is only one bug left
in this category.
This commit is contained in:
slidedraw 2002-04-14 01:26:23 +00:00
parent 623598152e
commit 1862b0b4f4
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
xlHtml ChangeLog xlHtml ChangeLog
0.4.9.4 0.5 04/13/02
*Fixed some memory leaks *Fixed some memory leaks
*Increased file name limit to 256 characters *Increased file name limit to 256 characters

View File

@ -83,9 +83,9 @@ void OutputTableHTML(void)
{ {
if (ws_array[i]->ws_title.str) if (ws_array[i]->ws_title.str)
{ {
printf("<H1><CENTER>"); printf("<CENTER><H1>");
OutputString(&ws_array[i]->ws_title); OutputString(&ws_array[i]->ws_title);
printf("</CENTER></H1><br>"); printf("</H1></CENTER><br>");
do_cr(); do_cr();
} }
else else
@ -132,7 +132,7 @@ void OutputTableHTML(void)
if (!aggressive) if (!aggressive)
printf("</TR>\n"); printf("</TR>\n");
} }
printf("</table></FONT><HR>"); printf("</TABLE></FONT><HR>");
do_cr(); do_cr();
} }

View File

@ -2594,7 +2594,7 @@ void output_cell(cell *c, int xml)
printf( xml ? "" : " VALIGN=\"top\""); printf( xml ? "" : " VALIGN=\"top\"");
break; break;
case 1: case 1:
printf( xml ? "" : " VALIGN=\"center\""); printf( xml ? "" : " VALIGN=\"middle\"");
break; break;
case 2: /* General alignment */ case 2: /* General alignment */
if (safe > 1) if (safe > 1)