diff options
author | mihailim <mihailim@noemail.net> | 2008-06-23 21:18:10 +0000 |
---|---|---|
committer | mihailim <mihailim@noemail.net> | 2008-06-23 21:18:10 +0000 |
commit | d3d259dcb77fbb6763caea275e17d4575e47fe63 (patch) | |
tree | b0fe457c275d209c1fed1fedf8ae1ac7000881df /src | |
parent | bfccf423b5eda112884f9a87857bf9a2d5b2deef (diff) | |
download | sqlite-d3d259dcb77fbb6763caea275e17d4575e47fe63.tar.gz sqlite-d3d259dcb77fbb6763caea275e17d4575e47fe63.zip |
Changed HTML mode output to use lowercase tags making good on the XHTML output promise (the DTDs indeed mandate lowercase) and closing #450. (CVS 5288)
FossilOrigin-Name: e07ed82caf5e4706ef564271830112d31e8cff7c
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/shell.c b/src/shell.c index eceeee6bd..a85b7dbf3 100644 --- a/src/shell.c +++ b/src/shell.c @@ -12,7 +12,7 @@ ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** -** $Id: shell.c,v 1.179 2008/05/19 15:53:35 drh Exp $ +** $Id: shell.c,v 1.180 2008/06/23 21:18:11 mihailim Exp $ */ #include <stdlib.h> #include <string.h> @@ -604,20 +604,20 @@ static int callback(void *pArg, int nArg, char **azArg, char **azCol){ } case MODE_Html: { if( p->cnt++==0 && p->showHeader ){ - fprintf(p->out,"<TR>"); + fprintf(p->out,"<tr>"); for(i=0; i<nArg; i++){ - fprintf(p->out,"<TH>%s</TH>",azCol[i]); + fprintf(p->out,"<th>%s</th>",azCol[i]); } - fprintf(p->out,"</TR>\n"); + fprintf(p->out,"</tr>\n"); } if( azArg==0 ) break; - fprintf(p->out,"<TR>"); + fprintf(p->out,"<tr>"); for(i=0; i<nArg; i++){ - fprintf(p->out,"<TD>"); + fprintf(p->out,"<td>"); output_html_string(p->out, azArg[i] ? azArg[i] : p->nullvalue); - fprintf(p->out,"</TD>\n"); + fprintf(p->out,"</td>\n"); } - fprintf(p->out,"</TR>\n"); + fprintf(p->out,"</tr>\n"); break; } case MODE_Tcl: { |