diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2017-12-19 04:16:57 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2017-12-19 04:23:32 +0300 |
commit | f6abf15832e4b41ed26b285b4a7c8f515ddb139f (patch) | |
tree | 2a555d23fc6c09df527d25e2e80384f8515a8334 /src/Text/Pandoc | |
parent | c0cc9270cbfad719d4cd3b8c57060cb06d41fe78 (diff) | |
download | pandoc-f6abf15832e4b41ed26b285b4a7c8f515ddb139f.tar.gz |
Muse reader: parse empty comments correctly
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/Muse.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs index 04cec149b..46dcf38d9 100644 --- a/src/Text/Pandoc/Readers/Muse.hs +++ b/src/Text/Pandoc/Readers/Muse.hs @@ -220,8 +220,7 @@ blockElements = choice [ comment comment :: PandocMonad m => MuseParser m (F Blocks) comment = try $ do char ';' - space - many $ noneOf "\n" + optionMaybe (spaceChar >> (many $ noneOf "\n")) eol return mempty |