summaryrefslogtreecommitdiff
path: root/tests/typ/text/raw.typ
diff options
context:
space:
mode:
authorMALO <57839069+MDLC01@users.noreply.github.com>2023-07-10 18:23:14 +0200
committerGitHub <noreply@github.com>2023-07-10 18:23:14 +0200
commit507efc3a1c14e8487705c7424d605a1663d3fe6e (patch)
treec37a61c0d363fa3d813d7dd6a143dd43968e728c /tests/typ/text/raw.typ
parent78f96f844bc54c5385c1efda0b5faad3c49fa79b (diff)
Do not take empty lines into account when computing `raw` block dedent (#1676)
Diffstat (limited to 'tests/typ/text/raw.typ')
-rw-r--r--tests/typ/text/raw.typ20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/typ/text/raw.typ b/tests/typ/text/raw.typ
index 8cf5ee7e..525988ec 100644
--- a/tests/typ/text/raw.typ
+++ b/tests/typ/text/raw.typ
@@ -5,6 +5,10 @@
`A``B`
---
+// Empty raw block.
+Empty raw block:``.
+
+---
// Typst syntax inside.
```typ #let x = 1``` \
```typ #f(1)```
@@ -49,6 +53,22 @@ The keyword ```rust let```.
```
---
+// Do not take empty lines into account when computing dedent.
+```
+ A
+
+ B
+```
+
+---
+// Take last line into account when computing dedent.
+```
+ A
+
+ B
+ ```
+
+---
// Text show rule
#show raw: set text(font: "Roboto")
`Roboto`