Skip to content

Commit a8dbfcd

Browse files
committed
Remove unneeded check for mspace since they are no longer used
1 parent e4cb499 commit a8dbfcd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ts/input/tex/bussproofs/BussproofsUtil.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,8 @@ const getSpaces = function (
214214
return result;
215215
}
216216
if (inf !== rule.parent) {
217-
const children = inf.childNodes;
218-
const index = right ? children.length - 1 : 0;
219-
if (NodeUtil.isType(children[index], 'mspace')) {
220-
result += getBBox(children[index]);
221-
}
217+
result +=
218+
(inf.getProperty(right ? 'proof-right' : 'proof-left') as number) || 0;
222219
inf = rule.parent;
223220
}
224221
if (inf === rule) {

0 commit comments

Comments
 (0)