commit ab9570b614cd736fef3c4b4604467f7fdc11b10c
parent 74253a955fcf3aa8854d666569f4733bd4da634e
Author: Davide P. Cervone <dpvc@union.edu>
Date: Sun, 14 Sep 2014 09:18:16 -0400
Merge branch 'issue775' into develop. Issue #775.
Diffstat:
2 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js
@@ -2185,9 +2185,9 @@
*/
fenced: function (open,mml,close) {
var mrow = MML.mrow().With({open:open, close:close, texClass:MML.TEXCLASS.INNER});
- if (open) {mrow.Append(MML.mo(open).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.OPEN}))}
+ mrow.Append(MML.mo(open).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.OPEN}));
if (mml.type === "mrow") {mrow.Append.apply(mrow,mml.data)} else {mrow.Append(mml)}
- if (close) {mrow.Append(MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE}))}
+ mrow.Append(MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE}));
return mrow;
},
/*
diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js
@@ -1636,10 +1636,11 @@
MML.mrow.Augment({
SVG: BBOX.ROW,
- toSVG: function () {
+ toSVG: function (h,d) {
this.SVGgetStyles();
var svg = this.SVG();
this.SVGhandleSpace(svg);
+ if (d != null) {this.sh = h; this.sd = d}
for (var i = 0, m = this.data.length; i < m; i++)
{if (this.data[i]) {svg.Check(this.data[i])}}
svg.Stretch(); svg.Clean();
@@ -1659,16 +1660,14 @@
},
SVGmultiline: function (span) {MML.mbase.SVGautoloadFile("multiline")},
SVGstretchH: function (w) {
- var svg = this.data[this.core].SVGstretchH(w);
- this.SVGhandleColor(svg);
- this.SVGsaveData(svg);
- return svg;
- },
- SVGstretchV: function (h,d) {
- var svg = this.data[this.core].SVGstretchV(h,d);
- this.SVGhandleColor(svg);
+ var svg = this.SVG();
+ this.SVGhandleSpace(svg);
+ for (var i = 0, m = this.data.length; i < m; i++)
+ {svg.Add(this.SVGdataStretched(i,w),svg.w,0)}
+ svg.Clean();
+ this.SVGhandleColor(svg);
this.SVGsaveData(svg);
- return svg;
+ return svg;
}
});