summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/linebreak.pngbin18653 -> 18957 bytes
-rw-r--r--tests/typ/text/linebreak.typ11
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/ref/text/linebreak.png b/tests/ref/text/linebreak.png
index 4a691d72..1a3f49df 100644
--- a/tests/ref/text/linebreak.png
+++ b/tests/ref/text/linebreak.png
Binary files differ
diff --git a/tests/typ/text/linebreak.typ b/tests/typ/text/linebreak.typ
index bee17c6b..797e2f7c 100644
--- a/tests/typ/text/linebreak.typ
+++ b/tests/typ/text/linebreak.typ
@@ -13,7 +13,7 @@ Supercalifragilisticexpialidocious Expialigoricmetrioxidation.
This is partly emp#emph[has]ized.
---
-Hard \ break.
+Hard #linebreak() break.
---
// Test hard break directly after normal break.
@@ -21,13 +21,16 @@ Hard break directly after \ normal break.
---
// Test consecutive breaks.
-Two consecutive \ \ breaks and three \ \ \ more.
+Two consecutive \ \ breaks and three \ \ more.
---
// Test forcing an empty trailing line.
Trailing break \ \
---
-// Test soft breaks.
+// Test justified breaks.
#set par(justify: true)
-With a soft \+ break you can force a break without breaking justification.
+With a soft \+
+break you can force a break without #linebreak(justified: true)
+breaking justification. #linebreak(justified: false)
+Nice!