diff options
author | Alexander <ilabdsf@gmail.com> | 2017-08-09 19:09:05 +0300 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-08-09 09:09:05 -0700 |
commit | cfa597fc2ac2a6dceb0b3387a2ee885ec75bc7d1 (patch) | |
tree | 8d9b2d79f0e93e6f9e68ade554ecfaa4b4158f02 | |
parent | 400a4ef5f3e1ef4f0f09e2f9eddb2be02ea2c204 (diff) | |
download | pandoc-cfa597fc2ac2a6dceb0b3387a2ee885ec75bc7d1.tar.gz |
Muse reader: simplify tableCell implementation (#3846)
-rw-r--r-- | src/Text/Pandoc/Readers/Muse.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs index 6e4aed94e..5d77dec13 100644 --- a/src/Text/Pandoc/Readers/Muse.hs +++ b/src/Text/Pandoc/Readers/Muse.hs @@ -391,9 +391,7 @@ museAppendElement tbl element = return tbl{ museTableCaption = inlines' } tableCell :: PandocMonad m => MuseParser m (F Blocks) -tableCell = try $ do - content <- trimInlinesF . mconcat <$> manyTill inline (lookAhead cellEnd) - return $ B.plain <$> content +tableCell = try $ liftM B.plain . trimInlinesF . mconcat <$> manyTill inline (lookAhead cellEnd) where cellEnd = try $ void (many1 spaceChar >> char '|') <|> void newline <|> eof tableElements :: PandocMonad m => MuseParser m [MuseTableElement] |