Skip to content

Commit

Permalink
RST reader: make use of anyLineNewline (#3686)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Krotov authored and jgm committed May 20, 2017
1 parent 03cb05f commit 753d581
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Text/Pandoc/Readers/RST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,7 @@ listLine :: Monad m => Int -> RSTParser m [Char]
listLine markerLength = try $ do
notFollowedBy blankline
indentWith markerLength
line <- anyLine
return $ line ++ "\n"
anyLineNewline

-- indent by specified number of spaces (or equiv. tabs)
indentWith :: Monad m => Int -> RSTParser m [Char]
Expand Down

0 comments on commit 753d581

Please sign in to comment.