diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-04-03 20:54:18 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-04-03 21:12:32 +0200 |
| commit | bfbbe8dcf8881d276c3db05aea99f7da915edde2 (patch) | |
| tree | 505b701eb8e0135a2c7e4b4da79caa301cffa07e /tests/typ/text/whitespace.typ | |
| parent | 9014e834785aeae4af264c4e8c2c2141ead4788a (diff) | |
Better paragraph layout tests ✅
Diffstat (limited to 'tests/typ/text/whitespace.typ')
| -rw-r--r-- | tests/typ/text/whitespace.typ | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/typ/text/whitespace.typ b/tests/typ/text/whitespace.typ new file mode 100644 index 00000000..3d7dd2e2 --- /dev/null +++ b/tests/typ/text/whitespace.typ @@ -0,0 +1,17 @@ +// Test whitespace handling. + +--- +// Test that a run consisting only of whitespace isn't trimmed. +A#font("PT Sans")[ ]B + +--- +// Test font change after space. +Left #font("PT Sans")[Right]. + +--- +// Test that space at start of line is not trimmed. +A{"\n"} B + +--- +// Test that trailing space does not force a line break. +LLLLLLLLLLLLLL R _L_ |
