diff options
| author | bluebear94 <uruwi@protonmail.com> | 2023-08-23 07:39:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-23 13:39:22 +0200 |
| commit | b59b8bfb352f57d50acd67a048baa8390d37e374 (patch) | |
| tree | 6920c37eec51fb03c9c1f6f254d52d3b4ec2c1b7 /tests/typ/layout | |
| parent | a4ad407a79587def7fbb2974cc46f0c94f469ffe (diff) | |
linebreak_optimized: Handle breakpoints separated only by spaces (#1821)
Diffstat (limited to 'tests/typ/layout')
| -rw-r--r-- | tests/typ/layout/par-justify.typ | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/typ/layout/par-justify.typ b/tests/typ/layout/par-justify.typ index 2e5b4806..e72a2a07 100644 --- a/tests/typ/layout/par-justify.typ +++ b/tests/typ/layout/par-justify.typ @@ -40,3 +40,13 @@ This text can be fitted in one line. "a b c " } #"d" + +--- +// Test that justification cannot lead to a leading space +#set par(justify: true) +#set text(size: 12pt) +#set page(width: 45mm, height: auto) + +lorem ipsum 1234, lorem ipsum dolor sit amet + +#" leading whitespace should still be displayed" |
