Skip to content

Commit

Permalink
Don't use info.embellished if the SVGdata isn't available (avoids Mat…
Browse files Browse the repository at this point in the history
…h Processing Error). Issue mathjax#707.
  • Loading branch information
dpvc committed Feb 14, 2014
1 parent cce9256 commit c52f0df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unpacked/jax/output/SVG/autoload/multiline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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?)
Expand Down

0 comments on commit c52f0df

Please sign in to comment.