From 89e71acecd4a3a06943d0bd4443fc80a9b8f41e4 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 10 Feb 2025 15:37:19 +0100 Subject: Respect `par` constructor arguments (#5842) --- tests/suite/model/par.typ | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/suite') 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().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 -- cgit v1.2.3