Handle empty child nodes better.
This commit is contained in:
parent
609d6ca8fc
commit
9394d32571
|
@ -397,10 +397,12 @@ MathJax.ElementJax.mml.Augment({
|
|||
},
|
||||
setBaseTeXclasses: function (prev) {
|
||||
this.getPrevClass(prev); this.texClass = null;
|
||||
if (this.isEmbellished() || this.data[0].isa(MML.mi)) {
|
||||
prev = this.data[0].setTeXclass(prev);
|
||||
this.updateTeXclass(this.Core());
|
||||
} else {if (this.data[0]) {this.data[0].setTeXclass()}; prev = this}
|
||||
if (this.data[0]) {
|
||||
if (this.isEmbellished() || this.data[0].isa(MML.mi)) {
|
||||
prev = this.data[0].setTeXclass(prev);
|
||||
this.updateTeXclass(this.Core());
|
||||
} else {this.data[0].setTeXclass(); prev = this}
|
||||
} else {prev = this}
|
||||
for (var i = 1, m = this.data.length; i < m; i++)
|
||||
{if (this.data[i]) {this.data[i].setTeXclass()}}
|
||||
return prev;
|
||||
|
|
|
@ -1674,9 +1674,8 @@
|
|||
else {box.bbox = this.HTMLzeroBBox()}
|
||||
},
|
||||
HTMLboxChild: function (n,box) {
|
||||
if (this.data[n]) {return this.data[n].toHTML(box)}
|
||||
if (!box.bbox) {box.bbox = this.HTMLzeroBBox()}
|
||||
return null;
|
||||
if (!this.data[n]) {this.SetData(n,MML.mrow())}
|
||||
return this.data[n].toHTML(box);
|
||||
},
|
||||
|
||||
HTMLcreateSpan: function (span) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user