aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Muse.hs
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-10-10 01:48:58 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-10-10 01:48:58 +0300
commitd3b2161bd17c25358422f84d282f4688c345a879 (patch)
tree7f0332b71eecae88e11f2d5f462f8f20cbb40606 /src/Text/Pandoc/Readers/Muse.hs
parent7556dc9e494d33bde276b0c3333e0a666338ad89 (diff)
downloadpandoc-d3b2161bd17c25358422f84d282f4688c345a879.tar.gz
Muse reader: fix parsing of empty cells
Diffstat (limited to 'src/Text/Pandoc/Readers/Muse.hs')
-rw-r--r--src/Text/Pandoc/Readers/Muse.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs
index 8ab708255..7aef9bd6d 100644
--- a/src/Text/Pandoc/Readers/Muse.hs
+++ b/src/Text/Pandoc/Readers/Muse.hs
@@ -703,7 +703,7 @@ tableParseRow :: PandocMonad m
tableParseRow n = try $ sequence <$> tableCells
where tableCells = (:) <$> tableCell sep <*> (tableCells <|> fmap pure (tableCell eol))
tableCell p = try $ fmap B.plain . trimInlinesF . mconcat <$> manyTill inline' p
- sep = try $ many1 spaceChar *> count n (char '|') *> (void (many1 spaceChar) <|> void (lookAhead eol))
+ sep = try $ many1 spaceChar *> count n (char '|') *> (void (lookAhead $ many1 spaceChar) <|> void (lookAhead eol))
-- | Parse a table header row.
tableParseHeader :: PandocMonad m => MuseParser m (F MuseTableElement)