aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-03-25 23:42:07 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-03-25 23:42:07 +0300
commit989a9ebec3e813f6f1663ca0b5d064acc3335a4a (patch)
treef95c5175a7b57ae1b5c077c1ccd2a1f5cfb2a4a7
parentaa929e462d18ac3d0b9c59d388d87828d583093d (diff)
downloadpandoc-989a9ebec3e813f6f1663ca0b5d064acc3335a4a.tar.gz
Muse writer: remove unused binding
-rw-r--r--src/Text/Pandoc/Writers/Muse.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Text/Pandoc/Writers/Muse.hs b/src/Text/Pandoc/Writers/Muse.hs
index 5f9b58aa1..af71405f3 100644
--- a/src/Text/Pandoc/Writers/Muse.hs
+++ b/src/Text/Pandoc/Writers/Muse.hs
@@ -380,12 +380,12 @@ renderInlineList :: PandocMonad m
-> StateT WriterState m Doc
renderInlineList True [] = pure "<verbatim></verbatim>"
renderInlineList False [] = pure ""
-renderInlineList start lst@(x:xs) = do r <- inlineToMuse x
- opts <- gets stOptions
- lst' <- renderInlineList (x == SoftBreak && writerWrapText opts == WrapPreserve) xs --hcat <$> mapM inlineToMuse xs
- if start && fixOrEscape x
- then pure ((text "<verbatim></verbatim>") <> r <> lst')
- else pure (r <> lst')
+renderInlineList start (x:xs) = do r <- inlineToMuse x
+ opts <- gets stOptions
+ lst' <- renderInlineList (x == SoftBreak && writerWrapText opts == WrapPreserve) xs --hcat <$> mapM inlineToMuse xs
+ if start && fixOrEscape x
+ then pure ((text "<verbatim></verbatim>") <> r <> lst')
+ else pure (r <> lst')
-- | Normalize and convert list of Pandoc inline elements to Muse.
inlineListToMuse'' :: PandocMonad m