typst/tests/typ/text/linebreaks.typ
2021-09-30 22:50:14 +02:00

29 lines
596 B
XML

// Test line breaking special cases.
---
// Test overlong word that is not directly after a hard break.
This is a spaceexceedinglylongy.
---
// Test two overlong words in a row.
Supercalifragilisticexpialidocious Expialigoricmetrioxidation.
---
// Test that there are no unwanted line break opportunities on run change.
This is partly emp_has_ized.
---
Hard \ break.
---
// Test hard break directly after normal break.
Hard break directly after \ normal break.
---
// Test consecutive breaks.
Two consecutive \ \ breaks and three \ \ \ more.
---
// Test trailing newline.
Trailing break \