From 82bcda80c6e8b9e6e4e6c707569df4f9022b042f Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 19 Nov 2017 04:26:45 +0300 Subject: Muse reader: count only one space as part of list item marker --- src/Text/Pandoc/Readers/Muse.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs index 4510e08ce..d54019777 100644 --- a/src/Text/Pandoc/Readers/Muse.hs +++ b/src/Text/Pandoc/Readers/Muse.hs @@ -392,8 +392,8 @@ listStart marker = try $ do st <- stateParserContext <$> getState getPosition >>= \pos -> guard (st == ListItemState || sourceColumn pos /= 1) markerLength <- marker - postWhitespace <- length <$> many1 spaceChar - return $ preWhitespace + markerLength + postWhitespace + many1 spaceChar + return $ preWhitespace + markerLength + 1 listItemContents :: PandocMonad m => Int -> MuseParser m (F Blocks) listItemContents markerLength = do -- cgit v1.2.3