diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/text/raw-code.png | bin | 40290 -> 55071 bytes | |||
| -rw-r--r-- | tests/typ/text/raw-code.typ | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/ref/text/raw-code.png b/tests/ref/text/raw-code.png Binary files differindex d3373f5f..682c7c48 100644 --- a/tests/ref/text/raw-code.png +++ b/tests/ref/text/raw-code.png diff --git a/tests/typ/text/raw-code.typ b/tests/typ/text/raw-code.typ index ca7b247d..3ac72a05 100644 --- a/tests/typ/text/raw-code.typ +++ b/tests/typ/text/raw-code.typ @@ -69,3 +69,18 @@ end </body> </html> ``` + +--- +#set page(width: 180pt) +#set text(6pt) +#set raw(lang:"python") + +Inline raws, multiline e.g. `for i in range(10): + # Only this line is a comment. + print(i)` or otherwise e.g. `print(j)`, are colored properly. + +Inline raws, multiline e.g. ` +# Appears blocky due to linebreaks at the boundary. +for i in range(10): + print(i) +` or otherwise e.g. `print(j)`, are colored properly. |
