Skip to content

Commit 5538982

Browse files
committed
Remove space around accent operators (resolves issue #815).
1 parent 16d0cfe commit 5538982

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

unpacked/jax/output/HTML-CSS/jax.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2616,6 +2616,7 @@
26162616
this.data[i].HTMLcanStretch("Horizontal"));
26172617
} else {
26182618
stretch[i] = this.data[i].HTMLcanStretch("Horizontal");
2619+
children[i].style.paddingLeft = children[i].style.paddingRight = "";
26192620
}
26202621
}
26212622
}
@@ -2630,7 +2631,11 @@
26302631
if (D == null && HW != null) {W = HW} else if (W == -HTMLCSS.BIGDIMEN) {W = WW}
26312632
for (i = WW = 0, m = this.data.length; i < m; i++) {if (this.data[i]) {
26322633
box = boxes[i];
2633-
if (stretch[i]) {box.bbox = this.data[i].HTMLstretchH(box,W).bbox}
2634+
if (stretch[i]) {
2635+
box.bbox = this.data[i].HTMLstretchH(box,W).bbox;
2636+
if (i !== this.base)
2637+
{children[i].style.paddingLeft = children[i].style.paddingRight = ""}
2638+
}
26342639
if (box.bbox.w > WW) {WW = box.bbox.w}
26352640
}}
26362641
var t = HTMLCSS.TeX.rule_thickness * this.mscale, factor = HTMLCSS.FONTDATA.TeX_factor;

unpacked/jax/output/SVG/jax.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,7 +1840,7 @@
18401840
boxes[i] = this.SVGdataStretched(i,HW,D);
18411841
stretch[i] = (D != null || HW == null) && this.data[i].SVGcanStretch("Horizontal");
18421842
} else {
1843-
boxes[i] = this.data[i].toSVG();
1843+
boxes[i] = this.data[i].toSVG(); boxes[i].x = 0; delete boxes[i].X;
18441844
stretch[i] = this.data[i].SVGcanStretch("Horizontal");
18451845
}
18461846
if (boxes[i].w > WW) {WW = boxes[i].w}
@@ -1849,7 +1849,10 @@
18491849
}
18501850
if (D == null && HW != null) {W = HW} else if (W == -SVG.BIGDIMEN) {W = WW}
18511851
for (i = WW = 0, m = this.data.length; i < m; i++) {if (this.data[i]) {
1852-
if (stretch[i]) {boxes[i] = this.data[i].SVGstretchH(W)}
1852+
if (stretch[i]) {
1853+
boxes[i] = this.data[i].SVGstretchH(W);
1854+
if (i !== this.base) {boxes[i].x = 0; delete boxes[i].X}
1855+
}
18531856
if (boxes[i].w > WW) {WW = boxes[i].w}
18541857
}}
18551858
var t = SVG.TeX.rule_thickness * this.mscale;

0 commit comments

Comments
 (0)