Skip to content

Commit e9e2afe

Browse files
committed
Handle missing X attributes in CHTML line breaking
1 parent 7b05eb7 commit e9e2afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unpacked/jax/output/CommonHTML/autoload/multiline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,11 +558,11 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
558558
// Get the bounding boxes and the width of the scripts
559559
//
560560
var bbox = this.CHTML, base = this.data[this.base].CHTML;
561-
var dw = bbox.w - base.w - bbox.X;
561+
var dw = bbox.w - base.w - (bbox.X||0);
562562
//
563563
// Add in the width of the prescripts
564564
//
565-
info.scanW += bbox.X; scanW = info.scanW;
565+
info.scanW += bbox.X||0; scanW = info.scanW;
566566
//
567567
// Check if the base can be broken
568568
//

0 commit comments

Comments
 (0)