RST reader: Require whitespace after field list field names.
commitd9f628fd18907d445bebc72c6aee376313e67d85
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateSun 30 Sep 2012, 14:57 (14 years ago)
parent946764c
src/Text/Pandoc/Readers/RST.hs+1−1
@@ -155,7 +155,7 @@ rawFieldListItem indent = try $ do
155155 string indent
156156 char ':'
157157 name <- many1Till (noneOf "\n") (char ':')
158− skipSpaces
158+ (() <$ lookAhead newline) <|> skipMany1 spaceChar
159159 first <- manyTill anyChar newline
160160 rest <- option "" $ try $ do lookAhead (string indent >> spaceChar)
161161 indentedBlock