From 403bb521cd78942096ae70f9c37f18da58d6290d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 12 Mar 2011 17:08:23 -0800 Subject: Fixed bug in RST field list parser. The bug affected field lists with multi-line items at the end of the list. --- src/Tests/Readers/RST.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Tests') diff --git a/src/Tests/Readers/RST.hs b/src/Tests/Readers/RST.hs index c0f60ff51..d67778f08 100644 --- a/src/Tests/Readers/RST.hs +++ b/src/Tests/Readers/RST.hs @@ -32,6 +32,8 @@ tests = [ "field list" =: with the first line, but they must be indented relative to the field name marker, and they must line up with each other. :Parameter i: integer +:Final: item + on two lines |] =?> ( setAuthors ["Me","Myself","I"] $ setDate "2001-08-16" $ doc @@ -41,6 +43,7 @@ tests = [ "field list" =: , (str "Version", [para "1"]) , (str "Indentation", [para "Since the field marker may be quite long, the second and subsequent lines of the field body do not have to line up with the first line, but they must be indented relative to the field name marker, and they must line up with each other."]) , (str "Parameter i", [para "integer"]) + , (str "Final", [para "item on two lines"]) ]) ] -- cgit v1.2.3