aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-09-30 14:57:55 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-09-30 14:57:55 -0700
commitd9f628fd18907d445bebc72c6aee376313e67d85 (patch)
tree63d2ee66d9082745aca8a0e9875021d0857a9d13 /src/Text/Pandoc/Readers
parent946764ccf7e25cb17997a8272bea3cba1536a5c5 (diff)
downloadpandoc-d9f628fd18907d445bebc72c6aee376313e67d85.tar.gz
RST reader: Require whitespace after field list field names.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/RST.hs2
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