Fossil SCM

Fix the HTML display of help for the timelime command. [forum:/info/2026-08-28T06:50:53Z|Forum 2026-08-28T06:50:53Z]

drh 2026-08-28 11:06 UTC trunk
Commit 6c84306e2796da1028e63f3e9c91bdfe641022e67e9832cbc2fb3f92895aeb4d
1 file changed +9 -1
+9 -1
--- src/dispatch.c
+++ src/dispatch.c
@@ -315,16 +315,24 @@
315315
}
316316
317317
/*
318318
** Append text to pOut, adding formatting markup. Terms that
319319
** have all lower-case letters are within <tt>..</tt>. Terms
320
-** that have all upper-case letters are within <i>..</i>.
320
+** that have all upper-case letters are within <i>..</i>. Except,
321
+** if the entire string begins with % then put the whole thing
322
+** inside of <tt>..</tt>.
321323
*/
322324
static void appendMixedFont(Blob *pOut, const char *z, int n){
323325
const char *zEnd = "";
324326
int i = 0;
325327
int j;
328
+ if( n>0 && z[0]=='%' ){
329
+ blob_append(pOut, "<tt>", 4);
330
+ blob_append(pOut, z, n);
331
+ blob_append(pOut, "</tt>", 5);
332
+ return;
333
+ }
326334
while( i<n ){
327335
if( z[i]==' ' || z[i]=='=' ){
328336
for(j=i+1; j<n && (z[j]==' ' || z[j]=='='); j++){}
329337
appendLinked(pOut, z+i, j-i);
330338
i = j;
331339
--- src/dispatch.c
+++ src/dispatch.c
@@ -315,16 +315,24 @@
315 }
316
317 /*
318 ** Append text to pOut, adding formatting markup. Terms that
319 ** have all lower-case letters are within <tt>..</tt>. Terms
320 ** that have all upper-case letters are within <i>..</i>.
 
 
321 */
322 static void appendMixedFont(Blob *pOut, const char *z, int n){
323 const char *zEnd = "";
324 int i = 0;
325 int j;
 
 
 
 
 
 
326 while( i<n ){
327 if( z[i]==' ' || z[i]=='=' ){
328 for(j=i+1; j<n && (z[j]==' ' || z[j]=='='); j++){}
329 appendLinked(pOut, z+i, j-i);
330 i = j;
331
--- src/dispatch.c
+++ src/dispatch.c
@@ -315,16 +315,24 @@
315 }
316
317 /*
318 ** Append text to pOut, adding formatting markup. Terms that
319 ** have all lower-case letters are within <tt>..</tt>. Terms
320 ** that have all upper-case letters are within <i>..</i>. Except,
321 ** if the entire string begins with % then put the whole thing
322 ** inside of <tt>..</tt>.
323 */
324 static void appendMixedFont(Blob *pOut, const char *z, int n){
325 const char *zEnd = "";
326 int i = 0;
327 int j;
328 if( n>0 && z[0]=='%' ){
329 blob_append(pOut, "<tt>", 4);
330 blob_append(pOut, z, n);
331 blob_append(pOut, "</tt>", 5);
332 return;
333 }
334 while( i<n ){
335 if( z[i]==' ' || z[i]=='=' ){
336 for(j=i+1; j<n && (z[j]==' ' || z[j]=='='); j++){}
337 appendLinked(pOut, z+i, j-i);
338 i = j;
339

Keyboard Shortcuts

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