diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2017-11-22 14:53:19 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2017-11-22 14:59:14 +0300 |
commit | e32657a6713dc113d511f409f0eb1a7570915d28 (patch) | |
tree | c2342bc2369b9e93dad296eef523977ad288c866 /src/Text/Pandoc | |
parent | 3fdf04614a758c89878c67d8cfea01705e694792 (diff) | |
download | pandoc-e32657a6713dc113d511f409f0eb1a7570915d28.tar.gz |
Muse reader: fix reading of multiline definitions
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/Muse.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs index 760308d5d..2e4b58de7 100644 --- a/src/Text/Pandoc/Readers/Muse.hs +++ b/src/Text/Pandoc/Readers/Muse.hs @@ -467,8 +467,8 @@ definitionListItem = try $ do where termParser = (guardDisabled Ext_amuse <|> void spaceChar) >> -- Initial space is required by Amusewiki, but not Emacs Muse many spaceChar >> - many1Till anyChar (lookAhead (void (try (spaceChar >> string "::")) <|> void newline)) - endOfInput = try $ skipMany blankline >> skipSpaces >> eof + many1Till (noneOf "\n") (lookAhead (void (try (spaceChar >> string "::")))) + endOfInput = lookAhead $ try $ skipMany blankline >> skipSpaces >> eof twoBlankLines = try $ blankline >> skipMany1 blankline newDefinitionListItem = try $ void termParser endOfListItemElement = lookAhead $ endOfInput <|> newDefinitionListItem <|> twoBlankLines |