mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
parent
fe402759c0
commit
65aeea3142
@ -190,7 +190,7 @@ impl<'a, 'b, 'v> MathContext<'a, 'b, 'v> {
|
|||||||
} else {
|
} else {
|
||||||
glyph.into()
|
glyph.into()
|
||||||
}
|
}
|
||||||
} else if text.chars().all(|c| c.is_ascii_digit()) {
|
} else if text.chars().all(|c| c.is_ascii_digit() || c == '.') {
|
||||||
// Numbers aren't that difficult.
|
// Numbers aren't that difficult.
|
||||||
let mut fragments = vec![];
|
let mut fragments = vec![];
|
||||||
for c in text.chars() {
|
for c in text.chars() {
|
||||||
|
BIN
tests/ref/bugs/math-number-spacing.png
Normal file
BIN
tests/ref/bugs/math-number-spacing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 33 KiB |
9
tests/typ/bugs/math-number-spacing.typ
Normal file
9
tests/typ/bugs/math-number-spacing.typ
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// Test spacing after numbers in math.
|
||||||
|
|
||||||
|
---
|
||||||
|
$
|
||||||
|
10degree \
|
||||||
|
10 degree \
|
||||||
|
10.1degree \
|
||||||
|
10.1 degree
|
||||||
|
$
|
Loading…
x
Reference in New Issue
Block a user