10
10
* didn't really belong there.
11
11
*
12
12
* IDENTIFICATION
13
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-print.c,v 1.65 2006/02/06 02:23:07 momjian Exp $
13
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-print.c,v 1.66 2006/02/07 00:26:15 momjian Exp $
14
14
*
15
15
*-------------------------------------------------------------------------
16
16
*/
@@ -256,7 +256,7 @@ PQprint(FILE *fout, const PGresult *res, const PQprintOpt *po)
256
256
{
257
257
if (po -> html3 )
258
258
fprintf (fout ,
259
- "<table %s><caption align=high >%d</caption>\n" ,
259
+ "<table %s><caption align=\"top\" >%d</caption>\n" ,
260
260
po -> tableOpt ? po -> tableOpt : "" , i );
261
261
else
262
262
fprintf (fout , libpq_gettext ("-- RECORD %d --\n" ), i );
@@ -276,12 +276,12 @@ PQprint(FILE *fout, const PGresult *res, const PQprintOpt *po)
276
276
{
277
277
if (po -> caption )
278
278
fprintf (fout ,
279
- "<table %s><caption align=high >%s</caption>\n" ,
279
+ "<table %s><caption align=\"top\" >%s</caption>\n" ,
280
280
po -> tableOpt ? po -> tableOpt : "" ,
281
281
po -> caption );
282
282
else
283
283
fprintf (fout ,
284
- "<table %s><caption align=high >"
284
+ "<table %s><caption align=\"top\" >"
285
285
"Retrieved %d rows * %d fields"
286
286
"</caption>\n" ,
287
287
po -> tableOpt ? po -> tableOpt : "" , nTups , nFields );
@@ -406,8 +406,8 @@ do_field(const PQprintOpt *po, const PGresult *res,
406
406
{
407
407
if (po -> html3 )
408
408
fprintf (fout ,
409
- "<tr><td align=left><b>%s</b></td>"
410
- "<td align=%s >%s</td></tr>\n" ,
409
+ "<tr><td align=\" left\" ><b>%s</b></td>"
410
+ "<td align=\"%s\" >%s</td></tr>\n" ,
411
411
fieldNames [j ],
412
412
fieldNotNum [j ] ? "left" : "right" ,
413
413
pval );
@@ -502,7 +502,7 @@ do_header(FILE *fout, const PQprintOpt *po, const int nFields, int *fieldMax,
502
502
503
503
if (po -> html3 )
504
504
{
505
- fprintf (fout , "<th align=%s >%s</th>" ,
505
+ fprintf (fout , "<th align=\"%s\" >%s</th>" ,
506
506
fieldNotNum [j ] ? "left" : "right" , fieldNames [j ]);
507
507
}
508
508
else
@@ -546,7 +546,7 @@ output_row(FILE *fout, const PQprintOpt *po, const int nFields, char **fields,
546
546
char * p = fields [row_index * nFields + field_index ];
547
547
548
548
if (po -> html3 )
549
- fprintf (fout , "<td align=%s >%s</td>" ,
549
+ fprintf (fout , "<td align=\"%s\" >%s</td>" ,
550
550
fieldNotNum [field_index ] ? "left" : "right" , p ? p : "" );
551
551
else
552
552
{
0 commit comments