diff options
| author | Laurenz <laurmaedje@gmail.com> | 2025-02-10 15:37:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-10 14:37:19 +0000 |
| commit | 89e71acecd4a3a06943d0bd4443fc80a9b8f41e4 (patch) | |
| tree | 7a7f01e6aaf10d85edc06162e8aab700e76647b4 /tests | |
| parent | ee47cb846924235be6eae968a7853ea7860ccc51 (diff) | |
Respect `par` constructor arguments (#5842)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-5831-par-constructor-args.png | bin | 0 -> 1356 bytes | |||
| -rw-r--r-- | tests/suite/model/par.typ | 14 |
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 Binary files differnew file mode 100644 index 00000000..440b612b --- /dev/null +++ b/tests/ref/issue-5831-par-constructor-args.png 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 |
