summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-02-10 15:37:19 +0100
committerGitHub <noreply@github.com>2025-02-10 14:37:19 +0000
commit89e71acecd4a3a06943d0bd4443fc80a9b8f41e4 (patch)
tree7a7f01e6aaf10d85edc06162e8aab700e76647b4 /tests/suite
parentee47cb846924235be6eae968a7853ea7860ccc51 (diff)
Respect `par` constructor arguments (#5842)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/model/par.typ14
1 files changed, 14 insertions, 0 deletions
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