Skip to content

Commit 337df97

Browse files
committed
Don't increase the spacing size for MathML spacing if it is 0
1 parent e68c42f commit 337df97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • ts/core/MmlTree/MmlNodes

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)