mirror of
				https://github.com/sqlite/sqlite.git
				synced 2025-11-03 16:53:36 +03:00 
			
		
		
		
	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
This commit is contained in:
		
							
								
								
									
										16
									
								
								src/shell.c
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								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: {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user