@@ -155,7 +155,7 @@ rawFieldListItem indent = try $ do
156 name <- many1Till (noneOf "\n") (char ':')
156 name <- many1Till (noneOf "\n") (char ':')
157 (() <$ lookAhead newline) <|> skipMany1 spaceChar
157 (() <$ lookAhead newline) <|> skipMany1 spaceChar
158− first <- manyTill anyChar newline
158+ first <- anyLine
159 rest <- option "" $ try $ do lookAhead (string indent >> spaceChar)
159 rest <- option "" $ try $ do lookAhead (string indent >> spaceChar)
160 indentedBlock
160 indentedBlock
161 let raw = (if null first then "" else (first ++ "\n")) ++ rest ++ "\n"
161 let raw = (if null first then "" else (first ++ "\n")) ++ rest ++ "\n"
@@ -302,7 +302,7 @@ hrule = try $ do
302indentedLine :: String -> Parser [Char] st [Char]
302indentedLine :: String -> Parser [Char] st [Char]
303indentedLine indents = try $ do
303indentedLine indents = try $ do
304 string indents
304 string indents
305− manyTill anyChar newline
305+ anyLine
307-- one or more indented lines, possibly separated by blank lines.
307-- one or more indented lines, possibly separated by blank lines.
308-- any amount of indentation will work.
308-- any amount of indentation will work.
@@ -339,7 +339,7 @@ lhsCodeBlock = try $ do
339 $ intercalate "\n" lns'
339 $ intercalate "\n" lns'
341birdTrackLine :: Parser [Char] st [Char]
341birdTrackLine :: Parser [Char] st [Char]
342−birdTrackLine = char '>' >> manyTill anyChar newline
342+birdTrackLine = char '>' >> anyLine
345-- block quotes
345-- block quotes
@@ -394,7 +394,7 @@ listLine :: Int -> RSTParser [Char]
394listLine markerLength = try $ do
394listLine markerLength = try $ do
395 notFollowedBy blankline
395 notFollowedBy blankline
396 indentWith markerLength
396 indentWith markerLength
397− line <- manyTill anyChar newline
397+ line <- anyLine
398 return $ line ++ "\n"
398 return $ line ++ "\n"
400-- indent by specified number of spaces (or equiv. tabs)
400-- indent by specified number of spaces (or equiv. tabs)
@@ -411,7 +411,7 @@ rawListItem :: RSTParser Int
411 -> RSTParser (Int, [Char])
411 -> RSTParser (Int, [Char])
412rawListItem start = try $ do
412rawListItem start = try $ do
413 markerLength <- start
413 markerLength <- start
414− firstLine <- manyTill anyChar newline
414+ firstLine <- anyLine
415 restLines <- many (listLine markerLength)
415 restLines <- many (listLine markerLength)
416 return (markerLength, (firstLine ++ "\n" ++ (concat restLines)))
416 return (markerLength, (firstLine ++ "\n" ++ (concat restLines)))