diff options
author | Andrey Makarov <ph.makarov@gmail.com> | 2021-07-09 03:24:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 20:24:57 -0400 |
commit | 0e44d137f97a8206af1f2747391615e2f237f000 (patch) | |
tree | 1e018a8ceff10cf5de546d1fffa0e90cf771c2fe /tests/stdlib/trst.nim | |
parent | 0d74f60742ecff2ac96d97e9ad421aa1b2e8fc85 (diff) | |
download | Nim-0e44d137f97a8206af1f2747391615e2f237f000.tar.gz |
rm redundant blank lines before literal blocks (#18465)
Diffstat (limited to 'tests/stdlib/trst.nim')
-rw-r--r-- | tests/stdlib/trst.nim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/stdlib/trst.nim b/tests/stdlib/trst.nim index fb9552479..fe99d6cfa 100644 --- a/tests/stdlib/trst.nim +++ b/tests/stdlib/trst.nim @@ -196,6 +196,22 @@ suite "RST parsing": rnLeaf 'someBlockQuote' """) + test "no redundant blank lines in literal blocks": + check(dedent""" + Check:: + + + code + + """.toAst == + dedent""" + rnInner + rnLeaf 'Check' + rnLeaf ':' + rnLiteralBlock + rnLeaf 'code' + """) + suite "RST indentation": test "nested bullet lists": let input = dedent """ |