typst/tests/typ/layout/spacing.typ
Laurenz 1ee1d078e2 Fatal errors
- Makes errors fatal, so that a phase is only reached when all previous phases were error-free
- Parsing still recovers and can produce multiple errors
- Evaluation fails fast and can thus produce only a single error (except for parse errors due to an import)
- The single error that could occur during execution is removed for now
- Removes Value::Error variant
2021-07-30 18:49:19 +02:00

20 lines
325 B
XML

// Test the `h` and `v` functions.
---
// Ends paragraphs.
Tightly #v(0pt) packed
// Eating up soft spacing.
Inv #h(0pt) isible
// Multiple spacings in a row.
Add #h(10pt) #h(10pt) up
// Relative to font size.
Relative #h(100%) spacing
---
// Missing spacing.
// Error: 12 missing argument: spacing
Totally #h() ignored