Fossil Forum

Remove extra characters from wiki_render_by_mimetype output
Login

Remove extra characters from wiki_render_by_mimetype output

Remove extra characters from wiki_render_by_mimetype output

(1) By anonymous on 2021-10-18 08:03:32 [source]

Only happens in the error case when wiki_render_by_mimetype renders a pikchr.

Index: src/wiki.c
==================================================================
--- src/wiki.c
+++ src/wiki.c
@@ -211,12 +211,12 @@
     if( w>0 ){
       @ <div class="pikchr-svg" style="max-width:%d(w)px">
       @ %s(zOut)
       @ </div>
     }else{
-      @ <pre class='error'>\n">
-      @ %s(zOut);
+      @ <pre class='error'>
+      @ %s(zOut)
       @ </pre>
     }
     free(zOut);
   }else{
     @ <pre class='textPlain'>

(2) By Stephan Beal (stephan) on 2021-10-18 08:13:46 in reply to 1 [link] [source]

Only happens in the error case when wiki_render_by_mimetype renders a pikchr.

Thank you! i've taken the liberty of changing that second line to %h instead of %s because of the recent case of checkin 3fa1f2429b8a3eb1 (presumably also reported by you? All of you anonymouses look alike to me ;).)