summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbluebear94 <uruwi@protonmail.com>2023-09-04 05:46:17 -0400
committerGitHub <noreply@github.com>2023-09-04 11:46:17 +0200
commit499c5f24448d313b988721f212536fe170953905 (patch)
tree412b6a15cdb526709c7523143858a71fb7537a40 /tests
parentba043a8d70052a15d0c664c6dc6ca2091ec2c475 (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.pngbin27297 -> 52393 bytes
-rw-r--r--tests/typ/layout/par-justify.typ13
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/ref/layout/par-justify.png b/tests/ref/layout/par-justify.png
index 5745f081..0cd9cbcd 100644
--- a/tests/ref/layout/par-justify.png
+++ b/tests/ref/layout/par-justify.png
Binary files differ
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;
+}
+```
+