Skip to content

Commit 910e2ed

Browse files
authored
Merge pull request #1324 from mathjax/fix/mo-mmlspacing
Don't increase the spacing size for MathML spacing if it is 0
2 parents 34b1421 + 337df97 commit 910e2ed

File tree

1 file changed

+2
-2
lines changed
  • ts/core/MmlTree/MmlNodes

1 file changed

+2
-2
lines changed

ts/core/MmlTree/MmlNodes/mo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ export class MmlMo extends AbstractMmlTokenNode {
463463
for (const name of Object.keys(def[3] || {})) {
464464
this.attributes.setInherited(name, def[3][name]);
465465
}
466-
this.lspace = (def[0] + 1) / 18;
467-
this.rspace = (def[1] + 1) / 18;
466+
this.lspace = ((def[0] || -1) + 1) / 18;
467+
this.rspace = ((def[1] || -1) + 1) / 18;
468468
}
469469

470470
/**

0 commit comments

Comments
 (0)