diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2018-03-02 00:56:52 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2018-03-02 01:01:50 +0300 |
commit | 177c5120a5d13c7019d99a3b79d3cc0981a00214 (patch) | |
tree | dc298ab7d304a60e8c8cbbdef27425324ec6a17a /src/Text | |
parent | e881214bf9a3cc990110ae3a23aec1d6b4076f66 (diff) |
Muse reader: do not consume whitespace while looking for closing end tag
Fix for a bug caught by round-trip test.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/Muse.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs index d86c46aca..6183f91cd 100644 --- a/src/Text/Pandoc/Readers/Muse.hs +++ b/src/Text/Pandoc/Readers/Muse.hs @@ -171,7 +171,7 @@ parseHtmlContent tag = try $ do many spaceChar (TagOpen _ attr, _) <- htmlTag (~== TagOpen tag []) manyTill spaceChar eol - content <- parseBlocksTill (manyTill spaceChar endtag) + content <- parseBlocksTill (try $ manyTill spaceChar endtag) manyTill spaceChar eol -- closing tag must be followed by optional whitespace and newline return (htmlAttrToPandoc attr, content) where |