summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-5831-par-constructor-args.pngbin0 -> 1356 bytes
-rw-r--r--tests/suite/model/par.typ14
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/ref/issue-5831-par-constructor-args.png b/tests/ref/issue-5831-par-constructor-args.png
new file mode 100644
index 00000000..440b612b
--- /dev/null
+++ b/tests/ref/issue-5831-par-constructor-args.png
Binary files differ
diff --git a/tests/suite/model/par.typ b/tests/suite/model/par.typ
index e7669006..d2c3416e 100644
--- a/tests/suite/model/par.typ
+++ b/tests/suite/model/par.typ
@@ -322,6 +322,20 @@ A
#context test(query(<a>).len(), 1)
+--- issue-5831-par-constructor-args ---
+// Make sure that all arguments are also respected in the constructor.
+A
+#par(
+ leading: 2pt,
+ spacing: 20pt,
+ justify: true,
+ linebreaks: "simple",
+ first-line-indent: (amount: 1em, all: true),
+ hanging-indent: 5pt,
+)[
+ The par function has a constructor and justification.
+]
+
--- show-par-set-block-hint ---
// Warning: 2-36 `show par: set block(spacing: ..)` has no effect anymore
// Hint: 2-36 this is specific to paragraphs as they are not considered blocks anymore