Loading...
 
Skip to main content

History: UserPageardavis

Preview of version: 45


PluginFormula rendering problem

I've noticed that when I enable PluginFormula and render some equations (specifically ones including exponentiation [^]), the image comes out OK, but often there will be some additional html garbage tagged on to the end of it... which doesn't look very nice. I was able to figure out that this is probably happening because the wiki renderer is interpreting the text inside of the IMG ALT field. A simple patch to include wiki "no process" tags in there seems to fix it up. The patch follows:

--- wikiplugin_formula.php
@@ -102,7 +102,7 @@
                }
                $file = $tmpf . ".png";
                $html = "<img src=\"temp/" .$file.
-                       "\" alt=\"" .$data. "\" ".
+                       "\" alt=\"" .$data. "\" ".
                        "align=\"middle\">";
        }
        return $html;


UserPageardavis

History

Advanced
Information Version
admin attachment conversion 58
View
drsassafras Mass search and replace 57
View
Art Davis 56
View
Art Davis 55
View
Art Davis 54
View
Art Davis 53
View
Art Davis 52
View
Art Davis 51
View
Art Davis 50
View
Art Davis 49
View
Art Davis 48
View
Art Davis 47
View
Art Davis 46
View
Art Davis 45
View
Art Davis 44
View
Art Davis 43
View
Art Davis 42
View
Art Davis 41
View
Art Davis 40
View
Art Davis 39
View
Art Davis 38
View
Art Davis 37
View
Art Davis 36
View
Art Davis 35
View