Skip to content

Commit 4a9bee1

Browse files
committed
Fix regression in HTML-CSS linebreak code that causes processing error in some cases.
1 parent dd2ac51 commit 4a9bee1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
315315
this.HTMLcleanBBox(slice.bbox);
316316
if (end.length === 0) {
317317
span = this.HTMLspanElement();
318+
var SPAN = span;
318319
if (this.href) span = span.parentNode;
319320
span.parentNode.removeChild(span);
320-
span.nextMathJaxSpan.id = span.id; var n = 0;
321-
while (span = span.nextMathJaxSpan) {
322-
var SPAN = span;
321+
span.nextMathJaxSpan.id = SPAN.id; var n = 0;
322+
while ((SPAN = SPAN.nextMathJaxSpan)) {
323323
if (SPAN.nodeName.toLowerCase() === "a") SPAN = SPAN.firstChild;
324324
var color = this.HTMLhandleColor(SPAN);
325325
if (color) {color.id += "-MathJax-Continue-"+n; n++}

0 commit comments

Comments
 (0)