diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2018-01-19 14:16:08 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2018-01-19 14:16:20 +0300 |
commit | 7680e9b9642c1bade4152e4c833003688c439ca1 (patch) | |
tree | bdf0d6663cefd83d3e5a331241b7d98b38e4ad26 /src/Text | |
parent | 4a5801b823e1fbd3d5b208b97acce78859c45b0d (diff) | |
download | pandoc-7680e9b9642c1bade4152e4c833003688c439ca1.tar.gz |
Muse reader: require only one space for nested definition list indentation
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/Muse.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs index a23ac239c..8bef5b539 100644 --- a/src/Text/Pandoc/Readers/Muse.hs +++ b/src/Text/Pandoc/Readers/Muse.hs @@ -469,8 +469,9 @@ orderedList = try $ do definitionListItem :: PandocMonad m => MuseParser m (F (Inlines, [Blocks])) definitionListItem = try $ do - guardDisabled Ext_amuse <|> void spaceChar -- Initial space is required by Amusewiki, but not Emacs Muse many spaceChar + startPos <- getPosition + (guardDisabled Ext_amuse) <|> (guard (sourceColumn startPos /= 1)) -- Initial space is required by Amusewiki, but not Emacs Muse pos <- getPosition term <- trimInlinesF . mconcat <$> manyTill (choice inlineList) (string "::") void spaceChar <|> lookAhead eol |