diff options
| author | John MacFarlane <[email protected]> | 2023-08-21 11:29:27 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-08-21 11:29:27 -0700 |
| commit | 40accba747a8bbcf82260bb60316ded731233492 (patch) | |
| tree | bdebfd63ebcf9560941a9d7134bbd7742e6cea4e /test | |
| parent | 70329edcd7afb7b3f8f015b13ab2e734c9e31d05 (diff) | |
Typst writer: use `~` for nonbreaking space.
And escape literal `~`.
Closes #9010.
Diffstat (limited to 'test')
| -rw-r--r-- | test/command/8966.md | 2 | ||||
| -rw-r--r-- | test/writer.typst | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/command/8966.md b/test/command/8966.md index 6307c3478..f0c9e99e1 100644 --- a/test/command/8966.md +++ b/test/command/8966.md @@ -5,5 +5,5 @@ #strong[Samsonov T.E.] Shape-Adaptive Geometric Simplification of Heterogeneous Line Datasets / T. E. Samsonov, O. P. Yakimova \/\/ International Journal of Geographical Information Science. — 2017. — -Vol. 31. — № 8. — pp. 1485-1520. +Vol. 31. — № 8. — pp.~1485-1520. ``` diff --git a/test/writer.typst b/test/writer.typst index d645d11b2..52837e910 100644 --- a/test/writer.typst +++ b/test/writer.typst @@ -382,7 +382,7 @@ Autonumbering: Should not be a list item: -M.A. 2007 +M.A.~2007 B. Williams @@ -588,12 +588,12 @@ This is code: `>`, `$`, `\`, `\$`, `<html>`. #strike[This is #emph[strikeout].] -Superscripts: a#super[bc]d a#super[#emph[hello]] a#super[hello there]. +Superscripts: a#super[bc]d a#super[#emph[hello]] a#super[hello~there]. -Subscripts: H#sub[2]O, H#sub[23]O, H#sub[many of them]O. +Subscripts: H#sub[2]O, H#sub[23]O, H#sub[many~of~them]O. These should not be superscripts or subscripts, because of the unescaped spaces: -a^b c^d, a~b c~d. +a^b c^d, a\~b c\~d. #horizontalrule |
