mirror of
https://github.com/typst/typst
synced 2025-06-28 08:12:53 +08:00
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
|
// 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)
|
if fragment.class() == Some(MathClass::Vary)
|
||||||
&& matches!(
|
&& matches!(
|
||||||
last.and_then(|i| resolved[i].class()),
|
last.and_then(|i| resolved[i].class()),
|
||||||
Some(
|
Some(
|
||||||
MathClass::Normal
|
MathClass::Normal
|
||||||
| MathClass::Alphabetic
|
| MathClass::Alphabetic
|
||||||
| MathClass::Binary
|
|
||||||
| MathClass::Closing
|
| MathClass::Closing
|
||||||
| MathClass::Fence
|
| MathClass::Fence
|
||||||
| MathClass::Relation
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user