diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-10-29 16:26:47 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-10-29 16:26:47 +0200 |
| commit | 1af194f3833766566de9f7e1ca9e937b77ad47c4 (patch) | |
| tree | 2f732b60c1c7d1690bf612173f215318c43d1391 /tests | |
| parent | de6786eb28c3034dfef654da73b09358fbd8cd90 (diff) | |
Dedent code blocks
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/markup/raw.png | bin | 6324 -> 6770 bytes | |||
| -rw-r--r-- | tests/typ/markup/raw.typ | 20 |
2 files changed, 14 insertions, 6 deletions
diff --git a/tests/ref/markup/raw.png b/tests/ref/markup/raw.png Binary files differindex 4da6a43e..bd8b811a 100644 --- a/tests/ref/markup/raw.png +++ b/tests/ref/markup/raw.png diff --git a/tests/typ/markup/raw.typ b/tests/typ/markup/raw.typ index 005d413e..d48432f7 100644 --- a/tests/typ/markup/raw.typ +++ b/tests/typ/markup/raw.typ @@ -37,13 +37,21 @@ The keyword ```rust let```. <``` trimmed ```> \ <``` trimmed```> -// Multiline trimming. -```py -import this +// Multiline trimming and dedenting. +#block[ + ```py + import this -def hi(): - print("Hi!") -``` + def hi(): + print("Hi!") + ``` +] + +--- +// First line is not dedented and leading space is still possible. + ``` A + B + C``` --- // Unterminated. |
