mirror of https://github.com/stelzo/typst.git
Fixed extraneous spacing in sign operators (#500)
This commit is contained in:
parent
387bcc3879
commit
90e7d18f26
|
|
@ -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
|
||||
)
|
||||
)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue