Fix RST reader for field lists items with body beginning after a new line
commitcdefeb9445afc7e8ea42e9ff0fdc69cfc8060c1d
authorDenis Laxalde <denis@laxalde.org>
dateWed 29 Aug 2012, 18:54 (14 years ago)
parentb21363f
src/Text/Pandoc/Readers/RST.hs+1−1
@@ -152,7 +152,7 @@ rawFieldListItem indent = try $ do
152152 string indent
153153 char ':'
154154 name <- many1 $ alphaNum <|> spaceChar
155− string ": "
155+ char ':'
156156 skipSpaces
157157 first <- manyTill anyChar newline
158158 rest <- option "" $ try $ do lookAhead (string indent >> spaceChar)
tests/rst-reader.rst+2−1
@@ -279,7 +279,8 @@ Field Lists
279279:address: 61 Main St.
280280:city: *Nowhere*, MA,
281281 USA
282−:phone: 123-4567
282+:phone:
283+ 123-4567
283284
284285HTML Blocks
285286===========