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]
Commit
6c84306e2796da1028e63f3e9c91bdfe641022e67e9832cbc2fb3f92895aeb4d
Parent
5d1b6a2be231dd0…
1 file changed
+9
-1
+9
-1
| --- src/dispatch.c | ||
| +++ src/dispatch.c | ||
| @@ -315,16 +315,24 @@ | ||
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | /* |
| 318 | 318 | ** Append text to pOut, adding formatting markup. Terms that |
| 319 | 319 | ** 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>. | |
| 321 | 323 | */ |
| 322 | 324 | static void appendMixedFont(Blob *pOut, const char *z, int n){ |
| 323 | 325 | const char *zEnd = ""; |
| 324 | 326 | int i = 0; |
| 325 | 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 | + } | |
| 326 | 334 | while( i<n ){ |
| 327 | 335 | if( z[i]==' ' || z[i]=='=' ){ |
| 328 | 336 | for(j=i+1; j<n && (z[j]==' ' || z[j]=='='); j++){} |
| 329 | 337 | appendLinked(pOut, z+i, j-i); |
| 330 | 338 | i = j; |
| 331 | 339 |
| --- 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 |