Fixed extraneous spacing in sign operators (#500)

This commit is contained in:
Yi Chen Chong 2023-04-01 20:45:54 +08:00 committed by GitHub
parent 387bcc3879
commit 90e7d18f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,17 +50,15 @@ impl MathRow {
}
// Convert variable operators into binary operators if something
// precedes them.
// precedes them and they are not preceded by a operator or comparator.
if fragment.class() == Some(MathClass::Vary)
&& matches!(
last.and_then(|i| resolved[i].class()),
Some(
MathClass::Normal
| MathClass::Alphabetic
| MathClass::Binary
| MathClass::Closing
| MathClass::Fence
| MathClass::Relation
)
)
{