Merge pull request #596 from dlax/rst-fieldlists

improvements to rst reader for field lists
This commit is contained in:
John MacFarlane 2012-09-16 10:19:42 -07:00
commit 9f89269941
2 changed files with 4 additions and 3 deletions

View file

@ -151,8 +151,8 @@ rawFieldListItem :: String -> Parser [Char] ParserState (String, String)
rawFieldListItem indent = try $ do
string indent
char ':'
name <- many1 $ alphaNum <|> spaceChar
string ": "
name <- many1 $ noneOf ":"
char ':'
skipSpaces
first <- manyTill anyChar newline
rest <- option "" $ try $ do lookAhead (string indent >> spaceChar)

View file

@ -279,7 +279,8 @@ Field Lists
:address: 61 Main St.
:city: *Nowhere*, MA,
USA
:phone: 123-4567
:phone:
123-4567
HTML Blocks
===========