git.iko.soy/typeable/pandoc
on master help sign in
RST reader: use anyLineNewline in rawListItem (#3702)
commitc38d5966edd9954d4ec1eb30b2eff140cb63d93e authorAlexander Krotov <ilabdsf@gmail.com> dateSun 28 May 2017, 10:29 (9 years ago) parent8614902
1 file changed+2−2
src/Text/Pandoc/Readers/RST.hs+2−2
src/Text/Pandoc/Readers/RST.hs+2−2
@@ -568,9 +568,9 @@ rawListItem :: Monad m => RSTParser m Int
568568 -> RSTParser m (Int, [Char])
569569rawListItem start = try $ do
570570 markerLength <- start
571− firstLine <- anyLine
571+ firstLine <- anyLineNewline
572572 restLines <- many (listLine markerLength)
573− return (markerLength, (firstLine ++ "\n" ++ (concat restLines)))
573+ return (markerLength, firstLine ++ concat restLines)
574574
575575-- continuation of a list item - indented and separated by blankline or
576576-- (in compact lists) endline.