RST reader: use anyLineNewline in rawListItem (#3702)
This commit is contained in:
parent
8614902234
commit
c38d5966ed
1 changed files with 2 additions and 2 deletions
|
@ -568,9 +568,9 @@ rawListItem :: Monad m => RSTParser m Int
|
||||||
-> RSTParser m (Int, [Char])
|
-> RSTParser m (Int, [Char])
|
||||||
rawListItem start = try $ do
|
rawListItem start = try $ do
|
||||||
markerLength <- start
|
markerLength <- start
|
||||||
firstLine <- anyLine
|
firstLine <- anyLineNewline
|
||||||
restLines <- many (listLine markerLength)
|
restLines <- many (listLine markerLength)
|
||||||
return (markerLength, (firstLine ++ "\n" ++ (concat restLines)))
|
return (markerLength, firstLine ++ concat restLines)
|
||||||
|
|
||||||
-- continuation of a list item - indented and separated by blankline or
|
-- continuation of a list item - indented and separated by blankline or
|
||||||
-- (in compact lists) endline.
|
-- (in compact lists) endline.
|
||||||
|
|
Loading…
Reference in a new issue