Don't use info.embellished if the SVGdata isn't available (avoids Math Processing Error). Issue #707.
This commit is contained in:
parent
cce9256bf9
commit
c52f0dff76
|
@ -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?)
|
||||
|
|
Loading…
Reference in New Issue
Block a user