typst/tests/typ/bugs/3841-tabs-in-raw-typ-code.typ

21 lines
339 B
XML

// Issue 3841 Tab chars are not rendered in raw blocks with lang: "typ(c)"
// https://github.com/typst/typst/issues/3841
#raw("#if true {\n\tf()\t// typ\n}", lang: "typ")
#raw("if true {\n\tf()\t// typc\n}", lang: "typc")
```typ
#if true {
// tabs around f()
f() // typ
}
```
```typc
if true {
// tabs around f()
f() // typc
}
```