diff options
| author | bluebear94 <uruwi@protonmail.com> | 2023-09-04 05:46:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-04 11:46:17 +0200 |
| commit | 499c5f24448d313b988721f212536fe170953905 (patch) | |
| tree | 412b6a15cdb526709c7523143858a71fb7537a40 /tests | |
| parent | ba043a8d70052a15d0c664c6dc6ca2091ec2c475 (diff) | |
Fix improper line wrapping in the presence of medial newlines (#2056)
Fixes #2019.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/layout/par-justify.png | bin | 27297 -> 52393 bytes | |||
| -rw-r--r-- | tests/typ/layout/par-justify.typ | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/ref/layout/par-justify.png b/tests/ref/layout/par-justify.png Binary files differindex 5745f081..0cd9cbcd 100644 --- a/tests/ref/layout/par-justify.png +++ b/tests/ref/layout/par-justify.png diff --git a/tests/typ/layout/par-justify.typ b/tests/typ/layout/par-justify.typ index e72a2a07..69576c7d 100644 --- a/tests/typ/layout/par-justify.typ +++ b/tests/typ/layout/par-justify.typ @@ -50,3 +50,16 @@ This text can be fitted in one line. lorem ipsum 1234, lorem ipsum dolor sit amet #" leading whitespace should still be displayed" + +--- +// Test that justification doesn't break code blocks + +#set par(justify: true) + +```cpp +int main() { + printf("Hello world\n"); + return 0; +} +``` + |
