Fossil SCM

This is an attempt to fix the bug in [6d05c66f877888fb|the previous check-in] that caused the commit message to get truncated.

drh 2025-03-18 15:35 verify-comments
Commit 140c865551e52441187fee8d1f175fd45185996ae3b914b51867a65bd812b05f
1 file changed +4 -2
+4 -2
--- src/checkin.c
+++ src/checkin.c
@@ -2344,20 +2344,22 @@
23442344
"Possible comment formatting error%s:%b\n",
23452345
nIssue>1 ? "s" : "", &tmp);
23462346
blob_reset(&tmp);
23472347
return 1;
23482348
}else if( strcspn(zStart,zSpecial)<strlen(zStart) ){
2349
- Blob html, txt;
2349
+ Blob in, html, txt;
23502350
char zGot[16];
23512351
int nGot = 0;
23522352
int i;
23532353
for(i=0; zSpecial[i]; i++){
23542354
if( strchr(zStart,zSpecial[i]) ) zGot[nGot++] = zSpecial[i];
23552355
}
23562356
zGot[nGot] = 0;
2357
+ blob_init(&in, blob_str(pComment), -1);
23572358
blob_init(&html, 0, 0);
2358
- wiki_convert(pComment, &html, WIKI_INLINE);
2359
+ wiki_convert(&in, &html, WIKI_INLINE);
2360
+ blob_reset(&in);
23592361
blob_init(&txt, 0, 0);
23602362
html_to_plaintext(blob_str(&html), &txt);
23612363
blob_reset(&html);
23622364
fossil_print("The comment uses special character%s \"%s\". "
23632365
"Does it render as you expect?\n\n ",
23642366
--- src/checkin.c
+++ src/checkin.c
@@ -2344,20 +2344,22 @@
2344 "Possible comment formatting error%s:%b\n",
2345 nIssue>1 ? "s" : "", &tmp);
2346 blob_reset(&tmp);
2347 return 1;
2348 }else if( strcspn(zStart,zSpecial)<strlen(zStart) ){
2349 Blob html, txt;
2350 char zGot[16];
2351 int nGot = 0;
2352 int i;
2353 for(i=0; zSpecial[i]; i++){
2354 if( strchr(zStart,zSpecial[i]) ) zGot[nGot++] = zSpecial[i];
2355 }
2356 zGot[nGot] = 0;
 
2357 blob_init(&html, 0, 0);
2358 wiki_convert(pComment, &html, WIKI_INLINE);
 
2359 blob_init(&txt, 0, 0);
2360 html_to_plaintext(blob_str(&html), &txt);
2361 blob_reset(&html);
2362 fossil_print("The comment uses special character%s \"%s\". "
2363 "Does it render as you expect?\n\n ",
2364
--- src/checkin.c
+++ src/checkin.c
@@ -2344,20 +2344,22 @@
2344 "Possible comment formatting error%s:%b\n",
2345 nIssue>1 ? "s" : "", &tmp);
2346 blob_reset(&tmp);
2347 return 1;
2348 }else if( strcspn(zStart,zSpecial)<strlen(zStart) ){
2349 Blob in, html, txt;
2350 char zGot[16];
2351 int nGot = 0;
2352 int i;
2353 for(i=0; zSpecial[i]; i++){
2354 if( strchr(zStart,zSpecial[i]) ) zGot[nGot++] = zSpecial[i];
2355 }
2356 zGot[nGot] = 0;
2357 blob_init(&in, blob_str(pComment), -1);
2358 blob_init(&html, 0, 0);
2359 wiki_convert(&in, &html, WIKI_INLINE);
2360 blob_reset(&in);
2361 blob_init(&txt, 0, 0);
2362 html_to_plaintext(blob_str(&html), &txt);
2363 blob_reset(&html);
2364 fossil_print("The comment uses special character%s \"%s\". "
2365 "Does it render as you expect?\n\n ",
2366

Keyboard Shortcuts

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