summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-10-29 16:26:47 +0200
committerLaurenz <laurmaedje@gmail.com>2021-10-29 16:26:47 +0200
commit1af194f3833766566de9f7e1ca9e937b77ad47c4 (patch)
tree2f732b60c1c7d1690bf612173f215318c43d1391 /tests
parentde6786eb28c3034dfef654da73b09358fbd8cd90 (diff)
Dedent code blocks
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/markup/raw.pngbin6324 -> 6770 bytes
-rw-r--r--tests/typ/markup/raw.typ20
2 files changed, 14 insertions, 6 deletions
diff --git a/tests/ref/markup/raw.png b/tests/ref/markup/raw.png
index 4da6a43e..bd8b811a 100644
--- a/tests/ref/markup/raw.png
+++ b/tests/ref/markup/raw.png
Binary files differ
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.