commit 86792eaf44afc7d6311209f1932a4624016c9819
parent 4cf38304ac3ce1af0c53cde79bfeee1da8a77033
Author: Davide P. Cervone <dpvc@union.edu>
Date: Fri, 14 Feb 2014 10:36:18 -0500
Merge branch 'issue707' into develop. 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?)