diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-30 14:57:55 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-30 14:57:55 -0700 |
commit | d9f628fd18907d445bebc72c6aee376313e67d85 (patch) | |
tree | 63d2ee66d9082745aca8a0e9875021d0857a9d13 /src | |
parent | 946764ccf7e25cb17997a8272bea3cba1536a5c5 (diff) | |
download | pandoc-d9f628fd18907d445bebc72c6aee376313e67d85.tar.gz |
RST reader: Require whitespace after field list field names.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index e3ab7032b..6f5633e59 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -155,7 +155,7 @@ rawFieldListItem indent = try $ do string indent char ':' name <- many1Till (noneOf "\n") (char ':') - skipSpaces + (() <$ lookAhead newline) <|> skipMany1 spaceChar first <- manyTill anyChar newline rest <- option "" $ try $ do lookAhead (string indent >> spaceChar) indentedBlock |