summaryrefslogtreecommitdiff
path: root/src/Tests/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-03-12 17:08:23 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-03-12 17:08:23 -0800
commit403bb521cd78942096ae70f9c37f18da58d6290d (patch)
tree78b20a2074b5295ee50ba6f4a40357d0737458e9 /src/Tests/Readers
parente24ce1c11da99b69c14f094ef04ed00d75c79a37 (diff)
Fixed bug in RST field list parser.
The bug affected field lists with multi-line items at the end of the list.
Diffstat (limited to 'src/Tests/Readers')
-rw-r--r--src/Tests/Readers/RST.hs3
1 files changed, 3 insertions, 0 deletions
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"])
])
]