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/ref/issue-5831-par-constructor-args.png | Bin 0 -> 1356 bytes tests/suite/model/par.typ | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/ref/issue-5831-par-constructor-args.png (limited to 'tests') 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 Binary files /dev/null and b/tests/ref/issue-5831-par-constructor-args.png 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().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