git.iko.soy/typeable/pandoc
on master help sign in
RST reader: Require whitespace after field list field names.
d9f628fJohn MacFarlane
src/Text/Pandoc/Readers/RST.hs+1−1
@@ -155,7 +155,7 @@ rawFieldListItem indent = try $ do
155 string indent
155 string indent
156 char ':'
156 char ':'
157 name <- many1Till (noneOf "\n") (char ':')
157 name <- many1Till (noneOf "\n") (char ':')
158− skipSpaces
158+ (() <$ lookAhead newline) <|> skipMany1 spaceChar
159 first <- manyTill anyChar newline
159 first <- manyTill anyChar newline
160 rest <- option "" $ try $ do lookAhead (string indent >> spaceChar)
160 rest <- option "" $ try $ do lookAhead (string indent >> spaceChar)
161 indentedBlock
161 indentedBlock