From 90e7d18f26f2043cdf5ecda0d46b0174006c4b59 Mon Sep 17 00:00:00 2001 From: Yi Chen Chong <40590448+yichenchong@users.noreply.github.com> Date: Sat, 1 Apr 2023 20:45:54 +0800 Subject: [PATCH] Fixed extraneous spacing in sign operators (#500) --- library/src/math/row.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/src/math/row.rs b/library/src/math/row.rs index 67d9eeafa..261723033 100644 --- a/library/src/math/row.rs +++ b/library/src/math/row.rs @@ -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 ) ) {