summaryrefslogtreecommitdiff
path: root/tests/typ/text/linebreak.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/text/linebreak.typ')
-rw-r--r--tests/typ/text/linebreak.typ28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/typ/text/linebreak.typ b/tests/typ/text/linebreak.typ
new file mode 100644
index 00000000..ff8559d6
--- /dev/null
+++ b/tests/typ/text/linebreak.typ
@@ -0,0 +1,28 @@
+// Test line breaks.
+
+---
+// 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#emph[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 forcing an empty trailing line.
+Trailing break \ \