diff options
Diffstat (limited to 'Text/Pandoc')
-rw-r--r-- | Text/Pandoc/Readers/Plain.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Text/Pandoc/Readers/Plain.hs b/Text/Pandoc/Readers/Plain.hs index 0f07feb..3e6a69a 100644 --- a/Text/Pandoc/Readers/Plain.hs +++ b/Text/Pandoc/Readers/Plain.hs @@ -27,4 +27,5 @@ lineToInlines s = let (cur, next) = break (== ' ') s -- 'Plain' block. readPlain :: PandocMonad m => T.Text -> m Pandoc readPlain = pure . Pandoc mempty . pure . Plain . - concatMap (\l -> (lineToInlines $ T.unpack l) ++ [LineBreak]) . T.lines + concatMap (\l -> (lineToInlines $ T.unpack l) ++ [LineBreak]) + . T.lines . T.filter (/= '\r') |