Fossil SCM

Styling: translate some tabs to spaces

jan.nijtmans 2013-12-04 09:36 trunk
Commit b3e32c8e8bbdf7b68d47d9a5ce806a896852e7f4
+1 -1
--- src/add.c
+++ src/add.c
@@ -548,11 +548,11 @@
548548
**
549549
** The original name of the file is zOrig. The new filename is zNew.
550550
*/
551551
static void mv_one_file(int vid, const char *zOrig, const char *zNew){
552552
int x = db_int(-1, "SELECT deleted FROM vfile WHERE pathname=%Q %s",
553
- zNew, filename_collation());
553
+ zNew, filename_collation());
554554
if( x>=0 ){
555555
if( x==0 ){
556556
fossil_fatal("cannot rename '%s' to '%s' since another file named '%s'"
557557
" is currently under management", zOrig, zNew, zNew);
558558
}else{
559559
--- src/add.c
+++ src/add.c
@@ -548,11 +548,11 @@
548 **
549 ** The original name of the file is zOrig. The new filename is zNew.
550 */
551 static void mv_one_file(int vid, const char *zOrig, const char *zNew){
552 int x = db_int(-1, "SELECT deleted FROM vfile WHERE pathname=%Q %s",
553 zNew, filename_collation());
554 if( x>=0 ){
555 if( x==0 ){
556 fossil_fatal("cannot rename '%s' to '%s' since another file named '%s'"
557 " is currently under management", zOrig, zNew, zNew);
558 }else{
559
--- src/add.c
+++ src/add.c
@@ -548,11 +548,11 @@
548 **
549 ** The original name of the file is zOrig. The new filename is zNew.
550 */
551 static void mv_one_file(int vid, const char *zOrig, const char *zNew){
552 int x = db_int(-1, "SELECT deleted FROM vfile WHERE pathname=%Q %s",
553 zNew, filename_collation());
554 if( x>=0 ){
555 if( x==0 ){
556 fossil_fatal("cannot rename '%s' to '%s' since another file named '%s'"
557 " is currently under management", zOrig, zNew, zNew);
558 }else{
559
--- src/json_finfo.c
+++ src/json_finfo.c
@@ -74,11 +74,11 @@
7474
/*6*/ " (SELECT uuid FROM blob WHERE rid=mlink.pid)," /* Parent file uuid */
7575
/*7*/ " event.bgcolor,"
7676
/*8*/ " b.size,"
7777
/*9*/ " (mlink.pid==0) AS isNew,"
7878
/*10*/ " (mlink.fid==0) AS isDel"
79
- " FROM mlink, blob b, event, blob ci, filename"
79
+ " FROM mlink, blob b, event, blob ci, filename"
8080
" WHERE filename.name=%Q"
8181
" AND mlink.fnid=filename.fnid"
8282
" AND b.rid=mlink.fid"
8383
" AND event.objid=mlink.mid"
8484
" AND event.objid=ci.rid",
8585
--- src/json_finfo.c
+++ src/json_finfo.c
@@ -74,11 +74,11 @@
74 /*6*/ " (SELECT uuid FROM blob WHERE rid=mlink.pid)," /* Parent file uuid */
75 /*7*/ " event.bgcolor,"
76 /*8*/ " b.size,"
77 /*9*/ " (mlink.pid==0) AS isNew,"
78 /*10*/ " (mlink.fid==0) AS isDel"
79 " FROM mlink, blob b, event, blob ci, filename"
80 " WHERE filename.name=%Q"
81 " AND mlink.fnid=filename.fnid"
82 " AND b.rid=mlink.fid"
83 " AND event.objid=mlink.mid"
84 " AND event.objid=ci.rid",
85
--- src/json_finfo.c
+++ src/json_finfo.c
@@ -74,11 +74,11 @@
74 /*6*/ " (SELECT uuid FROM blob WHERE rid=mlink.pid)," /* Parent file uuid */
75 /*7*/ " event.bgcolor,"
76 /*8*/ " b.size,"
77 /*9*/ " (mlink.pid==0) AS isNew,"
78 /*10*/ " (mlink.fid==0) AS isDel"
79 " FROM mlink, blob b, event, blob ci, filename"
80 " WHERE filename.name=%Q"
81 " AND mlink.fnid=filename.fnid"
82 " AND b.rid=mlink.fid"
83 " AND event.objid=mlink.mid"
84 " AND event.objid=ci.rid",
85
+7 -7
--- src/login.c
+++ src/login.c
@@ -474,11 +474,11 @@
474474
char *zSha1Pw;
475475
const char *zIpAddr; /* IP address of requestor */
476476
477477
login_check_credentials();
478478
sqlite3_create_function(g.db, "constant_time_cmp", 2, SQLITE_UTF8, 0,
479
- constant_time_cmp_function, 0, 0);
479
+ constant_time_cmp_function, 0, 0);
480480
zUsername = P("u");
481481
zPasswd = P("p");
482482
anonFlag = P("anon")!=0;
483483
if( P("out")!=0 ){
484484
login_clear_login_data();
@@ -703,16 +703,16 @@
703703
if( zVfs==0 && sqlite3_libversion_number()>=3008001 ){
704704
zVfs = "win32-longpath";
705705
}
706706
#endif
707707
rc = sqlite3_open_v2(zOtherRepo, &pOther,
708
- SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
709
- zVfs);
708
+ SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
709
+ zVfs);
710710
if( rc==SQLITE_OK ){
711711
sqlite3_create_function(pOther,"now",0,SQLITE_ANY,0,db_now_function,0,0);
712712
sqlite3_create_function(pOther, "constant_time_cmp", 2, SQLITE_UTF8, 0,
713
- constant_time_cmp_function, 0, 0);
713
+ constant_time_cmp_function, 0, 0);
714714
sqlite3_busy_timeout(pOther, 5000);
715715
zSQL = mprintf(
716716
"SELECT cexpire FROM user"
717717
" WHERE login=%Q"
718718
" AND ipaddr=%Q"
@@ -793,11 +793,11 @@
793793
794794
/* Only run this check once. */
795795
if( g.userUid!=0 ) return;
796796
797797
sqlite3_create_function(g.db, "constant_time_cmp", 2, SQLITE_UTF8, 0,
798
- constant_time_cmp_function, 0, 0);
798
+ constant_time_cmp_function, 0, 0);
799799
800800
/* If the HTTP connection is coming over 127.0.0.1 and if
801801
** local login is disabled and if we are using HTTP and not HTTPS,
802802
** then there is no need to check user credentials.
803803
**
@@ -1476,12 +1476,12 @@
14761476
if( zVfs==0 && sqlite3_libversion_number()>=3008001 ){
14771477
zVfs = "win32-longpath";
14781478
}
14791479
#endif
14801480
rc = sqlite3_open_v2(zRepo, &pOther,
1481
- SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
1482
- zVfs);
1481
+ SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
1482
+ zVfs);
14831483
if( rc!=SQLITE_OK ){
14841484
*pzErrMsg = mprintf(sqlite3_errmsg(pOther));
14851485
}else{
14861486
rc = sqlite3_exec(pOther, "SELECT count(*) FROM user", 0, 0, pzErrMsg);
14871487
}
14881488
--- src/login.c
+++ src/login.c
@@ -474,11 +474,11 @@
474 char *zSha1Pw;
475 const char *zIpAddr; /* IP address of requestor */
476
477 login_check_credentials();
478 sqlite3_create_function(g.db, "constant_time_cmp", 2, SQLITE_UTF8, 0,
479 constant_time_cmp_function, 0, 0);
480 zUsername = P("u");
481 zPasswd = P("p");
482 anonFlag = P("anon")!=0;
483 if( P("out")!=0 ){
484 login_clear_login_data();
@@ -703,16 +703,16 @@
703 if( zVfs==0 && sqlite3_libversion_number()>=3008001 ){
704 zVfs = "win32-longpath";
705 }
706 #endif
707 rc = sqlite3_open_v2(zOtherRepo, &pOther,
708 SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
709 zVfs);
710 if( rc==SQLITE_OK ){
711 sqlite3_create_function(pOther,"now",0,SQLITE_ANY,0,db_now_function,0,0);
712 sqlite3_create_function(pOther, "constant_time_cmp", 2, SQLITE_UTF8, 0,
713 constant_time_cmp_function, 0, 0);
714 sqlite3_busy_timeout(pOther, 5000);
715 zSQL = mprintf(
716 "SELECT cexpire FROM user"
717 " WHERE login=%Q"
718 " AND ipaddr=%Q"
@@ -793,11 +793,11 @@
793
794 /* Only run this check once. */
795 if( g.userUid!=0 ) return;
796
797 sqlite3_create_function(g.db, "constant_time_cmp", 2, SQLITE_UTF8, 0,
798 constant_time_cmp_function, 0, 0);
799
800 /* If the HTTP connection is coming over 127.0.0.1 and if
801 ** local login is disabled and if we are using HTTP and not HTTPS,
802 ** then there is no need to check user credentials.
803 **
@@ -1476,12 +1476,12 @@
1476 if( zVfs==0 && sqlite3_libversion_number()>=3008001 ){
1477 zVfs = "win32-longpath";
1478 }
1479 #endif
1480 rc = sqlite3_open_v2(zRepo, &pOther,
1481 SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
1482 zVfs);
1483 if( rc!=SQLITE_OK ){
1484 *pzErrMsg = mprintf(sqlite3_errmsg(pOther));
1485 }else{
1486 rc = sqlite3_exec(pOther, "SELECT count(*) FROM user", 0, 0, pzErrMsg);
1487 }
1488
--- src/login.c
+++ src/login.c
@@ -474,11 +474,11 @@
474 char *zSha1Pw;
475 const char *zIpAddr; /* IP address of requestor */
476
477 login_check_credentials();
478 sqlite3_create_function(g.db, "constant_time_cmp", 2, SQLITE_UTF8, 0,
479 constant_time_cmp_function, 0, 0);
480 zUsername = P("u");
481 zPasswd = P("p");
482 anonFlag = P("anon")!=0;
483 if( P("out")!=0 ){
484 login_clear_login_data();
@@ -703,16 +703,16 @@
703 if( zVfs==0 && sqlite3_libversion_number()>=3008001 ){
704 zVfs = "win32-longpath";
705 }
706 #endif
707 rc = sqlite3_open_v2(zOtherRepo, &pOther,
708 SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
709 zVfs);
710 if( rc==SQLITE_OK ){
711 sqlite3_create_function(pOther,"now",0,SQLITE_ANY,0,db_now_function,0,0);
712 sqlite3_create_function(pOther, "constant_time_cmp", 2, SQLITE_UTF8, 0,
713 constant_time_cmp_function, 0, 0);
714 sqlite3_busy_timeout(pOther, 5000);
715 zSQL = mprintf(
716 "SELECT cexpire FROM user"
717 " WHERE login=%Q"
718 " AND ipaddr=%Q"
@@ -793,11 +793,11 @@
793
794 /* Only run this check once. */
795 if( g.userUid!=0 ) return;
796
797 sqlite3_create_function(g.db, "constant_time_cmp", 2, SQLITE_UTF8, 0,
798 constant_time_cmp_function, 0, 0);
799
800 /* If the HTTP connection is coming over 127.0.0.1 and if
801 ** local login is disabled and if we are using HTTP and not HTTPS,
802 ** then there is no need to check user credentials.
803 **
@@ -1476,12 +1476,12 @@
1476 if( zVfs==0 && sqlite3_libversion_number()>=3008001 ){
1477 zVfs = "win32-longpath";
1478 }
1479 #endif
1480 rc = sqlite3_open_v2(zRepo, &pOther,
1481 SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
1482 zVfs);
1483 if( rc!=SQLITE_OK ){
1484 *pzErrMsg = mprintf(sqlite3_errmsg(pOther));
1485 }else{
1486 rc = sqlite3_exec(pOther, "SELECT count(*) FROM user", 0, 0, pzErrMsg);
1487 }
1488
+1 -1
--- src/md5.c
+++ src/md5.c
@@ -164,11 +164,11 @@
164164
/*
165165
* Start MD5 accumulation. Set bit count to 0 and buffer to mysterious
166166
* initialization constants.
167167
*/
168168
static void MD5Init(MD5Context *ctx){
169
- ctx->isInit = 1;
169
+ ctx->isInit = 1;
170170
ctx->buf[0] = 0x67452301;
171171
ctx->buf[1] = 0xefcdab89;
172172
ctx->buf[2] = 0x98badcfe;
173173
ctx->buf[3] = 0x10325476;
174174
ctx->bits[0] = 0;
175175
--- src/md5.c
+++ src/md5.c
@@ -164,11 +164,11 @@
164 /*
165 * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious
166 * initialization constants.
167 */
168 static void MD5Init(MD5Context *ctx){
169 ctx->isInit = 1;
170 ctx->buf[0] = 0x67452301;
171 ctx->buf[1] = 0xefcdab89;
172 ctx->buf[2] = 0x98badcfe;
173 ctx->buf[3] = 0x10325476;
174 ctx->bits[0] = 0;
175
--- src/md5.c
+++ src/md5.c
@@ -164,11 +164,11 @@
164 /*
165 * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious
166 * initialization constants.
167 */
168 static void MD5Init(MD5Context *ctx){
169 ctx->isInit = 1;
170 ctx->buf[0] = 0x67452301;
171 ctx->buf[1] = 0xefcdab89;
172 ctx->buf[2] = 0x98badcfe;
173 ctx->buf[3] = 0x10325476;
174 ctx->bits[0] = 0;
175
+13 -13
--- src/sha1.c
+++ src/sha1.c
@@ -161,20 +161,20 @@
161161
){
162162
unsigned int i, j;
163163
164164
j = context->count[0];
165165
if ((context->count[0] += len << 3) < j)
166
- context->count[1] += (len>>29)+1;
166
+ context->count[1] += (len>>29)+1;
167167
j = (j >> 3) & 63;
168168
if ((j + len) > 63) {
169
- (void)memcpy(&context->buffer[j], data, (i = 64-j));
170
- SHA1Transform(context->state, context->buffer);
171
- for ( ; i + 63 < len; i += 64)
172
- SHA1Transform(context->state, &data[i]);
173
- j = 0;
169
+ (void)memcpy(&context->buffer[j], data, (i = 64-j));
170
+ SHA1Transform(context->state, context->buffer);
171
+ for ( ; i + 63 < len; i += 64)
172
+ SHA1Transform(context->state, &data[i]);
173
+ j = 0;
174174
} else {
175
- i = 0;
175
+ i = 0;
176176
}
177177
(void)memcpy(&context->buffer[j], &data[i], len - i);
178178
}
179179
180180
@@ -184,22 +184,22 @@
184184
static void SHA1Final(SHA1Context *context, unsigned char digest[20]){
185185
unsigned int i;
186186
unsigned char finalcount[8];
187187
188188
for (i = 0; i < 8; i++) {
189
- finalcount[i] = (unsigned char)((context->count[(i >= 4 ? 0 : 1)]
190
- >> ((3-(i & 3)) * 8) ) & 255); /* Endian independent */
189
+ finalcount[i] = (unsigned char)((context->count[(i >= 4 ? 0 : 1)]
190
+ >> ((3-(i & 3)) * 8) ) & 255); /* Endian independent */
191191
}
192192
SHA1Update(context, (const unsigned char *)"\200", 1);
193193
while ((context->count[0] & 504) != 448)
194
- SHA1Update(context, (const unsigned char *)"\0", 1);
194
+ SHA1Update(context, (const unsigned char *)"\0", 1);
195195
SHA1Update(context, finalcount, 8); /* Should cause a SHA1Transform() */
196196
197197
if (digest) {
198
- for (i = 0; i < 20; i++)
199
- digest[i] = (unsigned char)
200
- ((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255);
198
+ for (i = 0; i < 20; i++)
199
+ digest[i] = (unsigned char)
200
+ ((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255);
201201
}
202202
}
203203
204204
205205
/*
206206
--- src/sha1.c
+++ src/sha1.c
@@ -161,20 +161,20 @@
161 ){
162 unsigned int i, j;
163
164 j = context->count[0];
165 if ((context->count[0] += len << 3) < j)
166 context->count[1] += (len>>29)+1;
167 j = (j >> 3) & 63;
168 if ((j + len) > 63) {
169 (void)memcpy(&context->buffer[j], data, (i = 64-j));
170 SHA1Transform(context->state, context->buffer);
171 for ( ; i + 63 < len; i += 64)
172 SHA1Transform(context->state, &data[i]);
173 j = 0;
174 } else {
175 i = 0;
176 }
177 (void)memcpy(&context->buffer[j], &data[i], len - i);
178 }
179
180
@@ -184,22 +184,22 @@
184 static void SHA1Final(SHA1Context *context, unsigned char digest[20]){
185 unsigned int i;
186 unsigned char finalcount[8];
187
188 for (i = 0; i < 8; i++) {
189 finalcount[i] = (unsigned char)((context->count[(i >= 4 ? 0 : 1)]
190 >> ((3-(i & 3)) * 8) ) & 255); /* Endian independent */
191 }
192 SHA1Update(context, (const unsigned char *)"\200", 1);
193 while ((context->count[0] & 504) != 448)
194 SHA1Update(context, (const unsigned char *)"\0", 1);
195 SHA1Update(context, finalcount, 8); /* Should cause a SHA1Transform() */
196
197 if (digest) {
198 for (i = 0; i < 20; i++)
199 digest[i] = (unsigned char)
200 ((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255);
201 }
202 }
203
204
205 /*
206
--- src/sha1.c
+++ src/sha1.c
@@ -161,20 +161,20 @@
161 ){
162 unsigned int i, j;
163
164 j = context->count[0];
165 if ((context->count[0] += len << 3) < j)
166 context->count[1] += (len>>29)+1;
167 j = (j >> 3) & 63;
168 if ((j + len) > 63) {
169 (void)memcpy(&context->buffer[j], data, (i = 64-j));
170 SHA1Transform(context->state, context->buffer);
171 for ( ; i + 63 < len; i += 64)
172 SHA1Transform(context->state, &data[i]);
173 j = 0;
174 } else {
175 i = 0;
176 }
177 (void)memcpy(&context->buffer[j], &data[i], len - i);
178 }
179
180
@@ -184,22 +184,22 @@
184 static void SHA1Final(SHA1Context *context, unsigned char digest[20]){
185 unsigned int i;
186 unsigned char finalcount[8];
187
188 for (i = 0; i < 8; i++) {
189 finalcount[i] = (unsigned char)((context->count[(i >= 4 ? 0 : 1)]
190 >> ((3-(i & 3)) * 8) ) & 255); /* Endian independent */
191 }
192 SHA1Update(context, (const unsigned char *)"\200", 1);
193 while ((context->count[0] & 504) != 448)
194 SHA1Update(context, (const unsigned char *)"\0", 1);
195 SHA1Update(context, finalcount, 8); /* Should cause a SHA1Transform() */
196
197 if (digest) {
198 for (i = 0; i < 20; i++)
199 digest[i] = (unsigned char)
200 ((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255);
201 }
202 }
203
204
205 /*
206
+6 -6
--- src/style.c
+++ src/style.c
@@ -1114,18 +1114,18 @@
11141114
int i;
11151115
11161116
for (i=0;cssDefaultList[i].elementClass;i++){
11171117
if (cssDefaultList[i].elementClass[0]){
11181118
cgi_printf("/* %s */\n%s {\n%s\n}\n\n",
1119
- cssDefaultList[i].comment,
1120
- cssDefaultList[i].elementClass,
1121
- cssDefaultList[i].value
1122
- );
1119
+ cssDefaultList[i].comment,
1120
+ cssDefaultList[i].elementClass,
1121
+ cssDefaultList[i].value
1122
+ );
11231123
}else{
11241124
cgi_printf("%s",
1125
- cssDefaultList[i].value
1126
- );
1125
+ cssDefaultList[i].value
1126
+ );
11271127
}
11281128
}
11291129
}
11301130
11311131
/*
11321132
--- src/style.c
+++ src/style.c
@@ -1114,18 +1114,18 @@
1114 int i;
1115
1116 for (i=0;cssDefaultList[i].elementClass;i++){
1117 if (cssDefaultList[i].elementClass[0]){
1118 cgi_printf("/* %s */\n%s {\n%s\n}\n\n",
1119 cssDefaultList[i].comment,
1120 cssDefaultList[i].elementClass,
1121 cssDefaultList[i].value
1122 );
1123 }else{
1124 cgi_printf("%s",
1125 cssDefaultList[i].value
1126 );
1127 }
1128 }
1129 }
1130
1131 /*
1132
--- src/style.c
+++ src/style.c
@@ -1114,18 +1114,18 @@
1114 int i;
1115
1116 for (i=0;cssDefaultList[i].elementClass;i++){
1117 if (cssDefaultList[i].elementClass[0]){
1118 cgi_printf("/* %s */\n%s {\n%s\n}\n\n",
1119 cssDefaultList[i].comment,
1120 cssDefaultList[i].elementClass,
1121 cssDefaultList[i].value
1122 );
1123 }else{
1124 cgi_printf("%s",
1125 cssDefaultList[i].value
1126 );
1127 }
1128 }
1129 }
1130
1131 /*
1132
+6 -6
--- src/tkt.c
+++ src/tkt.c
@@ -1257,16 +1257,16 @@
12571257
const char *z;
12581258
z = pTicket->aField[i].zName;
12591259
blob_set(&val, pTicket->aField[i].zValue);
12601260
if( z[0]=='+' ){
12611261
fossil_print(" Append to ");
1262
- z++;
1263
- }else{
1264
- fossil_print(" Change ");
1265
- }
1266
- fossil_print("%h: ",z);
1267
- if( blob_size(&val)>50 || contains_newline(&val)) {
1262
+ z++;
1263
+ }else{
1264
+ fossil_print(" Change ");
1265
+ }
1266
+ fossil_print("%h: ",z);
1267
+ if( blob_size(&val)>50 || contains_newline(&val)) {
12681268
fossil_print("\n ",blob_str(&val));
12691269
comment_print(blob_str(&val),4,79);
12701270
}else{
12711271
fossil_print("%s\n",blob_str(&val));
12721272
}
12731273
--- src/tkt.c
+++ src/tkt.c
@@ -1257,16 +1257,16 @@
1257 const char *z;
1258 z = pTicket->aField[i].zName;
1259 blob_set(&val, pTicket->aField[i].zValue);
1260 if( z[0]=='+' ){
1261 fossil_print(" Append to ");
1262 z++;
1263 }else{
1264 fossil_print(" Change ");
1265 }
1266 fossil_print("%h: ",z);
1267 if( blob_size(&val)>50 || contains_newline(&val)) {
1268 fossil_print("\n ",blob_str(&val));
1269 comment_print(blob_str(&val),4,79);
1270 }else{
1271 fossil_print("%s\n",blob_str(&val));
1272 }
1273
--- src/tkt.c
+++ src/tkt.c
@@ -1257,16 +1257,16 @@
1257 const char *z;
1258 z = pTicket->aField[i].zName;
1259 blob_set(&val, pTicket->aField[i].zValue);
1260 if( z[0]=='+' ){
1261 fossil_print(" Append to ");
1262 z++;
1263 }else{
1264 fossil_print(" Change ");
1265 }
1266 fossil_print("%h: ",z);
1267 if( blob_size(&val)>50 || contains_newline(&val)) {
1268 fossil_print("\n ",blob_str(&val));
1269 comment_print(blob_str(&val),4,79);
1270 }else{
1271 fossil_print("%s\n",blob_str(&val));
1272 }
1273
+1 -1
--- src/wiki.c
+++ src/wiki.c
@@ -869,11 +869,11 @@
869869
style_header("Wiki Pages Found");
870870
@ <ul>
871871
db_prepare(&q,
872872
"SELECT substr(tagname, 6, 1000) FROM tag WHERE tagname like 'wiki-%%%q%%'"
873873
" ORDER BY lower(tagname) /*sort*/" ,
874
- zTitle);
874
+ zTitle);
875875
while( db_step(&q)==SQLITE_ROW ){
876876
const char *zName = db_column_text(&q, 0);
877877
@ <li>%z(href("%R/wiki?name=%T",zName))%h(zName)</a></li>
878878
}
879879
db_finalize(&q);
880880
--- src/wiki.c
+++ src/wiki.c
@@ -869,11 +869,11 @@
869 style_header("Wiki Pages Found");
870 @ <ul>
871 db_prepare(&q,
872 "SELECT substr(tagname, 6, 1000) FROM tag WHERE tagname like 'wiki-%%%q%%'"
873 " ORDER BY lower(tagname) /*sort*/" ,
874 zTitle);
875 while( db_step(&q)==SQLITE_ROW ){
876 const char *zName = db_column_text(&q, 0);
877 @ <li>%z(href("%R/wiki?name=%T",zName))%h(zName)</a></li>
878 }
879 db_finalize(&q);
880
--- src/wiki.c
+++ src/wiki.c
@@ -869,11 +869,11 @@
869 style_header("Wiki Pages Found");
870 @ <ul>
871 db_prepare(&q,
872 "SELECT substr(tagname, 6, 1000) FROM tag WHERE tagname like 'wiki-%%%q%%'"
873 " ORDER BY lower(tagname) /*sort*/" ,
874 zTitle);
875 while( db_step(&q)==SQLITE_ROW ){
876 const char *zName = db_column_text(&q, 0);
877 @ <li>%z(href("%R/wiki?name=%T",zName))%h(zName)</a></li>
878 }
879 db_finalize(&q);
880

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button