summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst-library/src/math/fragment.rs1
-rw-r--r--tests/ref/math/spacing.pngbin18271 -> 17881 bytes
-rw-r--r--tests/typ/math/spacing.typ3
3 files changed, 3 insertions, 1 deletions
diff --git a/crates/typst-library/src/math/fragment.rs b/crates/typst-library/src/math/fragment.rs
index 1a90eaad..85fdf6a6 100644
--- a/crates/typst-library/src/math/fragment.rs
+++ b/crates/typst-library/src/math/fragment.rs
@@ -216,6 +216,7 @@ impl GlyphFragment {
pub fn with_id(ctx: &MathContext, c: char, id: GlyphId, span: Span) -> Self {
let class = match c {
':' => Some(MathClass::Relation),
+ '⋯' | '⋱' | '⋰' | '⋮' => Some(MathClass::Normal),
_ => unicode_math_class::class(c),
};
let mut fragment = Self {
diff --git a/tests/ref/math/spacing.png b/tests/ref/math/spacing.png
index abcfae80..5e717eff 100644
--- a/tests/ref/math/spacing.png
+++ b/tests/ref/math/spacing.png
Binary files differ
diff --git a/tests/typ/math/spacing.typ b/tests/typ/math/spacing.typ
index b763fb2d..132477f7 100644
--- a/tests/typ/math/spacing.typ
+++ b/tests/typ/math/spacing.typ
@@ -11,7 +11,8 @@ $a not b$ \
$a+b, a*b$ \
$sum x, sum(x)$ \
$sum product x$ \
-$f(x), zeta(x), "frac"(x)$
+$f(x), zeta(x), "frac"(x)$ \
+$a+dots.c+b$
---
// Test ignored vs non-ignored spaces.