commit c52f0dff76c8da06f1a082504eb3447a1ca86149
parent cce9256bf997b44a042b06d8b76f3230d6f6fc34
Author: Davide P. Cervone <dpvc@union.edu>
Date: Fri, 14 Feb 2014 10:35:56 -0500
Don't use info.embellished if the SVGdata isn't available (avoids Math Processing Error). Issue #707.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/unpacked/jax/output/SVG/autoload/multiline.js b/unpacked/jax/output/SVG/autoload/multiline.js
@@ -504,7 +504,8 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
//
// Get the default penalty for this location
//
- var W = info.scanW, mo = (info.embellished||this); delete info.embellished;
+ var W = info.scanW, mo = info.embellished; delete info.embellished;
+ if (!mo || !mo.SVGdata) {mo = this}
var svg = mo.SVGdata, w = svg.w + svg.x;
if (values.linebreakstyle === MML.LINEBREAKSTYLE.AFTER) {W += w; w = 0}
if (W - info.shift === 0) {return false} // don't break at zero width (FIXME?)