diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Tests/Readers/RST.hs | 4 | ||||
-rw-r--r-- | test/command/5182.md | 6 | ||||
-rw-r--r-- | test/command/5182.txt | 5 |
3 files changed, 13 insertions, 2 deletions
diff --git a/test/Tests/Readers/RST.hs b/test/Tests/Readers/RST.hs index d69440843..9e2253cc4 100644 --- a/test/Tests/Readers/RST.hs +++ b/test/Tests/Readers/RST.hs @@ -112,7 +112,7 @@ tests = [ "line block with blank line" =: "def func(x):\n return y") , "Code directive with number-lines, no line specified" =: T.unlines [ ".. code::python" - , " :number-lines: " + , " :number-lines:" , "" , " def func(x):" , " return y" @@ -120,7 +120,7 @@ tests = [ "line block with blank line" =: doc (codeBlockWith ( "" , ["python", "numberLines"] - , [ ("startFrom", "") ] + , [] ) "def func(x):\n return y") , testGroup "literal / line / code blocks" diff --git a/test/command/5182.md b/test/command/5182.md new file mode 100644 index 000000000..dc30a12ce --- /dev/null +++ b/test/command/5182.md @@ -0,0 +1,6 @@ +``` +pandoc -f rst -t native +.. include:: command/5182.txt +^D +[CodeBlock ("",["python","numberLines"],[]) "def func(x):\n return y"] +``` diff --git a/test/command/5182.txt b/test/command/5182.txt new file mode 100644 index 000000000..f1580ef0e --- /dev/null +++ b/test/command/5182.txt @@ -0,0 +1,5 @@ +.. code::python + :number-lines: + + def func(x): + return y |