aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-11-14 19:17:05 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-11-14 19:17:05 +0300
commit367e8cac18924f8cd9898f84f25c56bd2ae3b744 (patch)
treea39750a97ed877790c5fdf98c0d52f5ac2823a3e /src/Text/Pandoc/Readers
parentc61b67410ac9f30786dd8e5c73cf2a7bbdbcd02c (diff)
downloadpandoc-367e8cac18924f8cd9898f84f25c56bd2ae3b744.tar.gz
Muse reader: trim whitespace before parsing grid table cells
Diffstat (limited to 'src/Text/Pandoc/Readers')
-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 2ddaffabd..70cd47b58 100644
--- a/src/Text/Pandoc/Readers/Muse.hs
+++ b/src/Text/Pandoc/Readers/Muse.hs
@@ -56,7 +56,7 @@ import Text.Pandoc.Error (PandocError (PandocParsecError))
import Text.Pandoc.Logging
import Text.Pandoc.Options
import Text.Pandoc.Parsing hiding (F)
-import Text.Pandoc.Shared (crFilter, underlineSpan)
+import Text.Pandoc.Shared (crFilter, trimr, underlineSpan)
-- | Read Muse from an input string and return a Pandoc document.
readMuse :: PandocMonad m
@@ -692,7 +692,7 @@ museGridTableRow :: PandocMonad m
-> MuseParser m (F [Blocks])
museGridTableRow indent indices = try $ do
lns <- many1 $ try (indentWith indent *> museGridTableRawLine indices)
- let cols = map unlines $ transpose lns
+ let cols = map (unlines . map trimr) $ transpose lns
indentWith indent *> museGridTableHeader
sequence <$> mapM (parseFromString parseBlocks) cols