diff options
| author | Wenzhuo Liu <mgt@oi-wiki.org> | 2024-05-17 16:35:51 +0800 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-05-17 15:34:20 +0200 |
| commit | c2eddff485d1d13d5077d02a9593bd8d3656e702 (patch) | |
| tree | 55d70c5f1d3b0abef6b4446260ca043aa9ef469a /tests | |
| parent | ba1ae1c9a28c22fda1c57a5b12db2e5e91eb1b4a (diff) | |
Fix raw block has extra space when end with backtick (#4162)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-3820-raw-space-when-end-with-backtick.png | bin | 0 -> 351 bytes | |||
| -rw-r--r-- | tests/suite/text/raw.typ | 15 |
2 files changed, 14 insertions, 1 deletions
diff --git a/tests/ref/issue-3820-raw-space-when-end-with-backtick.png b/tests/ref/issue-3820-raw-space-when-end-with-backtick.png Binary files differnew file mode 100644 index 00000000..1ba3fb18 --- /dev/null +++ b/tests/ref/issue-3820-raw-space-when-end-with-backtick.png diff --git a/tests/suite/text/raw.typ b/tests/suite/text/raw.typ index dce77fdb..6a3ea6bd 100644 --- a/tests/suite/text/raw.typ +++ b/tests/suite/text/raw.typ @@ -624,7 +624,20 @@ fn main() { ~~~~The~spaces~on~this~line~shrink +--- issue-3820-raw-space-when-end-with-backtick --- +```typ +`code` +``` + + ```typ + `code` + ``` + --- raw-unclosed --- -// Unterminated. +// Test unterminated raw text. +// +// Note: This test should be the final one in the file because it messes up +// syntax highlighting. +// // Error: 1-2:1 unclosed raw text `endless |
