diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2024-11-04 10:37:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-04 09:37:29 +0000 |
| commit | 692d846d25a69023c15ba739f41c211270562dc3 (patch) | |
| tree | 3fc55852a377f4af8844e4f0ff2c45fb47010114 /tests | |
| parent | cb1aad3a0cc862c5ff57a557e196ba49a02917de (diff) | |
Disable justification in `raw(block: true, ...)` (#4889)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-3191-raw-indent-shrink.png | bin | 1422 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/issue-3191-raw-justify.png | bin | 0 -> 622 bytes | |||
| -rw-r--r-- | tests/suite/text/raw.typ | 25 |
3 files changed, 9 insertions, 16 deletions
diff --git a/tests/ref/issue-3191-raw-indent-shrink.png b/tests/ref/issue-3191-raw-indent-shrink.png Binary files differdeleted file mode 100644 index e7ac73b7..00000000 --- a/tests/ref/issue-3191-raw-indent-shrink.png +++ /dev/null diff --git a/tests/ref/issue-3191-raw-justify.png b/tests/ref/issue-3191-raw-justify.png Binary files differnew file mode 100644 index 00000000..1466ccf0 --- /dev/null +++ b/tests/ref/issue-3191-raw-justify.png diff --git a/tests/suite/text/raw.typ b/tests/suite/text/raw.typ index d6f6978e..fa9e630f 100644 --- a/tests/suite/text/raw.typ +++ b/tests/suite/text/raw.typ @@ -594,23 +594,16 @@ fn main() { } ``` ---- issue-3191-raw-indent-shrink --- -// Spaces in raw blocks should not be shrunk as it would mess up the indentation -// of code. -#set par(justify: true) - -#show raw.where(block: true): block.with( - fill: luma(240), - inset: 10pt, -) +--- issue-3191-raw-justify --- +// Raw blocks should not be justified by default. +``` +a b c -------------------- +``` -#block( - width: 60%, - ```py - for x in xs: - print("x=",x) - ``` -) +#show raw: set par(justify: true) +``` +a b c -------------------- +``` --- issue-3191-raw-normal-paragraphs-still-shrink --- // In normal paragraphs, spaces should still be shrunk. |
