aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Muse.hs4
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