From c52f0dff76c8da06f1a082504eb3447a1ca86149 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Fri, 14 Feb 2014 10:35:56 -0500 Subject: [PATCH] Don't use info.embellished if the SVGdata isn't available (avoids Math Processing Error). Issue #707. --- unpacked/jax/output/SVG/autoload/multiline.js | 3 ++- 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 index 55a244993..f3cf5b8e8 100644 --- 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?)