summaryrefslogtreecommitdiff
path: root/library/src
diff options
context:
space:
mode:
Diffstat (limited to 'library/src')
-rw-r--r--library/src/math/row.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/src/math/row.rs b/library/src/math/row.rs
index 67d9eeaf..26172303 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
)
)
{