Fossil SCM

The <verbatim type="pikchr"> markup of Fossil wiki now always puts the resulting image in a separate block, not allowing it to be in-line.

drh 2020-09-11 16:41 trunk
Commit a0ef47e79fec07f85abfda72e36ced4a0b402dad810f89043709168d8ca07b00
1 file changed +2
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1405,11 +1405,13 @@
14051405
** i plus the number of bytes in the </verbatim>. Generate the reply.
14061406
*/
14071407
assert( strncmp(zClass,"pikchr",6)==0 );
14081408
zClass += 6;
14091409
while( fossil_isspace(zClass[0]) ) zClass++;
1410
+ blob_append(p->pOut, "<p>", 3);
14101411
pikchr_to_html(p->pOut, z, i, zClass, (int)strlen(zClass));
1412
+ blob_append(p->pOut, "</p>\n", 5);
14111413
return iRet;
14121414
}
14131415
14141416
/*
14151417
** Return the MUTYPE for the top of the stack.
14161418
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1405,11 +1405,13 @@
1405 ** i plus the number of bytes in the </verbatim>. Generate the reply.
1406 */
1407 assert( strncmp(zClass,"pikchr",6)==0 );
1408 zClass += 6;
1409 while( fossil_isspace(zClass[0]) ) zClass++;
 
1410 pikchr_to_html(p->pOut, z, i, zClass, (int)strlen(zClass));
 
1411 return iRet;
1412 }
1413
1414 /*
1415 ** Return the MUTYPE for the top of the stack.
1416
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1405,11 +1405,13 @@
1405 ** i plus the number of bytes in the </verbatim>. Generate the reply.
1406 */
1407 assert( strncmp(zClass,"pikchr",6)==0 );
1408 zClass += 6;
1409 while( fossil_isspace(zClass[0]) ) zClass++;
1410 blob_append(p->pOut, "<p>", 3);
1411 pikchr_to_html(p->pOut, z, i, zClass, (int)strlen(zClass));
1412 blob_append(p->pOut, "</p>\n", 5);
1413 return iRet;
1414 }
1415
1416 /*
1417 ** Return the MUTYPE for the top of the stack.
1418

Keyboard Shortcuts

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