summary refs log tree commit diff stats
path: root/tests/stdlib/trstgen.nim
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2021-04-05 09:33:06 +0300
committerGitHub <noreply@github.com>2021-04-05 08:33:06 +0200
commitca405167ed79a6591104de62de6bed077f0698f5 (patch)
tree61b32e5ff63c277ff85e8054eefc5238067791c4 /tests/stdlib/trstgen.nim
parent70a30317f7b0a5711e248e0653b50d1c057bd16b (diff)
downloadNim-ca405167ed79a6591104de62de6bed077f0698f5.tar.gz
fix :number-lines: regression (#17639)
Diffstat (limited to 'tests/stdlib/trstgen.nim')
-rw-r--r--tests/stdlib/trstgen.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/stdlib/trstgen.nim b/tests/stdlib/trstgen.nim
index 57dacdf11..99b8d8db5 100644
--- a/tests/stdlib/trstgen.nim
+++ b/tests/stdlib/trstgen.nim
@@ -1089,6 +1089,16 @@ Test1
     let output0 = input0.toHtml
     doAssert "<p>Paragraph1</p>" in output0
 
+  test "Nim code-block :number-lines:":
+    let input = dedent """
+      .. code-block:: nim
+         :number-lines: 55
+
+         x
+         y
+      """
+    check "<pre class=\"line-nums\">55\n56\n</pre>" in input.toHtml
+
   test "RST admonitions":
     # check that all admonitions are implemented
     let input0 = dedent """