From 35971495abbc15342f0035040f964ed4dd3b0c5d Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Thu, 10 Jan 2019 07:19:26 +0100 Subject: RST reader: change treatment of `number-lines` directives. (#5207) Directives of this type without numeric inputs should not have a `startFrom` attribute; with a blank value, the writers can produce extra whitespace. --- test/Tests/Readers/RST.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/Tests') 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" -- cgit v1.2.3