Skip to content

Commit

Permalink
RST reader: use anyLineNewline in rawListItem (#3702)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Krotov authored and jgm committed May 28, 2017
1 parent 8614902 commit c38d596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Text/Pandoc/Readers/RST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,9 @@ rawListItem :: Monad m => RSTParser m Int
-> RSTParser m (Int, [Char])
rawListItem start = try $ do
markerLength <- start
firstLine <- anyLine
firstLine <- anyLineNewline
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
-- (in compact lists) endline.
Expand Down

0 comments on commit c38d596

Please sign in to comment.