From 6c266dd4aaac691abe848e2b1b37fb5d8e32df75 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 8 Jun 2020 09:14:43 -0400 Subject: [PATCH] Fix problems with texClass --- ts/core/MmlTree/MmlNodes/mo.ts | 1 - ts/core/MmlTree/MmlNodes/mrow.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ts/core/MmlTree/MmlNodes/mo.ts b/ts/core/MmlTree/MmlNodes/mo.ts index dad897c57..a1a4f7694 100644 --- a/ts/core/MmlTree/MmlNodes/mo.ts +++ b/ts/core/MmlTree/MmlNodes/mo.ts @@ -218,7 +218,6 @@ export class MmlMo extends AbstractMmlTokenNode { let {form, fence} = this.attributes.getList('form', 'fence') as {form: string, fence: string}; if (this.getProperty('texClass') === undefined && (this.attributes.isSet('lspace') || this.attributes.isSet('rspace'))) { - this.texClass = TEXCLASS.NONE; return null; } if (fence && this.texClass === TEXCLASS.REL) { diff --git a/ts/core/MmlTree/MmlNodes/mrow.ts b/ts/core/MmlTree/MmlNodes/mrow.ts index baed5872e..ed4232d6d 100644 --- a/ts/core/MmlTree/MmlNodes/mrow.ts +++ b/ts/core/MmlTree/MmlNodes/mrow.ts @@ -154,7 +154,7 @@ export class MmlMrow extends AbstractMmlNode { */ public setTeXclass(prev: MmlNode) { if ((this.getProperty('open') != null || this.getProperty('close') != null) && - (!prev || prev.getProperty('fnOp') != null)) { + (!prev || prev.getProperty('fnOP') != null)) { // // came from \left...\right // so treat as subexpression (TeX class INNER).