mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 06:55:46 +00:00
Fix RST reader for field lists items with body beginning after a new line
This commit is contained in:
@@ -152,7 +152,7 @@ rawFieldListItem indent = try $ do
|
||||
string indent
|
||||
char ':'
|
||||
name <- many1 $ alphaNum <|> spaceChar
|
||||
string ": "
|
||||
char ':'
|
||||
skipSpaces
|
||||
first <- manyTill anyChar newline
|
||||
rest <- option "" $ try $ do lookAhead (string indent >> spaceChar)
|
||||
|
||||
@@ -279,7 +279,8 @@ Field Lists
|
||||
:address: 61 Main St.
|
||||
:city: *Nowhere*, MA,
|
||||
USA
|
||||
:phone: 123-4567
|
||||
:phone:
|
||||
123-4567
|
||||
|
||||
HTML Blocks
|
||||
===========
|
||||
|
||||
Reference in New Issue
Block a user