summary refs log tree commit diff stats
path: root/tests/stdlib/trst.nim
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2021-07-09 03:24:57 +0300
committerGitHub <noreply@github.com>2021-07-08 20:24:57 -0400
commit0e44d137f97a8206af1f2747391615e2f237f000 (patch)
tree1e018a8ceff10cf5de546d1fffa0e90cf771c2fe /tests/stdlib/trst.nim
parent0d74f60742ecff2ac96d97e9ad421aa1b2e8fc85 (diff)
downloadNim-0e44d137f97a8206af1f2747391615e2f237f000.tar.gz
rm redundant blank lines before literal blocks (#18465)
Diffstat (limited to 'tests/stdlib/trst.nim')
-rw-r--r--tests/stdlib/trst.nim16
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 """