diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2024-04-02 05:07:00 -0400 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-05-17 14:27:58 +0200 |
| commit | cb24d104040d4ccde77610fb6fa3c166a62d6754 (patch) | |
| tree | dea2a08f076f4676def047cccf829f6f73422486 /tests/typ | |
| parent | c5e094757db9b7d520969afb472e3efbc9aeb920 (diff) | |
Fix tab rendering for raw block with lang "typ(c)" (#3847)
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/bugs/3841-tabs-in-raw-typ-code.typ | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/typ/bugs/3841-tabs-in-raw-typ-code.typ b/tests/typ/bugs/3841-tabs-in-raw-typ-code.typ new file mode 100644 index 00000000..db04fe3c --- /dev/null +++ b/tests/typ/bugs/3841-tabs-in-raw-typ-code.typ @@ -0,0 +1,20 @@ +// 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 +} +``` |
