Fix some spacing, and a few minor formatting issues.

This commit is contained in:
Davide P. Cervone 2015-03-10 20:17:33 -04:00
parent 117f29096d
commit 59c9f45592

View File

@ -1298,14 +1298,9 @@
// //
var stack = base, delta = 0; var stack = base, delta = 0;
if (bbox.ic) {delta = 1.3*bbox.ic + .05} // make faked IC be closer to expeted results if (bbox.ic) {delta = 1.3*bbox.ic + .05} // make faked IC be closer to expeted results
if (this.data[this.over]) { if (this.data[this.over]) stack = this.CHTMLaddOverscript(over,boxes,values,delta,base);
stack = this.CHTMLaddOverscript(over,boxes,values,delta,base); if (this.data[this.under]) this.CHTMLaddUnderscript(under,boxes,values,delta,node,stack);
} else node.appendChild(stack);
if (this.data[this.under]) {
this.CHTMLaddUnderscript(under,boxes,values,delta,node,stack);
} else {
node.appendChild(stack);
}
// //
// Handle horizontal positions // Handle horizontal positions
// //
@ -1373,7 +1368,7 @@
// //
var stack = HTML.Element("mjx-stack"); var stack = HTML.Element("mjx-stack");
stack.appendChild(over); stack.appendChild(base); stack.appendChild(over); stack.appendChild(base);
if (obox.d < 0 || obox.h < .25) { if (obox.d < 0) {
// //
// For negative depths, set the height and align to top // For negative depths, set the height and align to top
// in order to avoid extra baseline space // in order to avoid extra baseline space
@ -1421,7 +1416,7 @@
]); ]);
node.firstChild.firstChild.firstChild.appendChild(stack); node.firstChild.firstChild.firstChild.appendChild(stack);
node.firstChild.lastChild.appendChild(under); node.firstChild.lastChild.appendChild(under);
if (ubox.d < 0 || ubox.h < .25) { if (ubox.d < 0) {
// //
// For negative depths, set the height and align to top // For negative depths, set the height and align to top
// in order to avoid extra baseline space // in order to avoid extra baseline space
@ -1448,7 +1443,6 @@
}, },
// //
// Center boxes horizontally, taking offsets into account // Center boxes horizontally, taking offsets into account
// ### FIXME: handle BBOX.l and BBOX.r
// //
CHTMLplaceBoxes: function (base,under,over,values,boxes) { CHTMLplaceBoxes: function (base,under,over,values,boxes) {
var W = this.CHTML.w, i, m = boxes.length; var W = this.CHTML.w, i, m = boxes.length;