aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-24 09:56:40 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-24 09:56:40 +0100
commit4248231a7e43f9a0cbd42aec5448c4d3fc392d22 (patch)
treef058f2b93610e66b544e021302f5f27ef73ceda2
parent718254340fb73d75cf8f6fc322631c1c72db0e47 (diff)
downloadpandoc-4248231a7e43f9a0cbd42aec5448c4d3fc392d22.tar.gz
Ms writer: fixed rawblock/inline to accept "ms" format.
-rw-r--r--src/Text/Pandoc/Writers/Ms.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Writers/Ms.hs b/src/Text/Pandoc/Writers/Ms.hs
index 84b911e35..f69448dbf 100644
--- a/src/Text/Pandoc/Writers/Ms.hs
+++ b/src/Text/Pandoc/Writers/Ms.hs
@@ -233,8 +233,8 @@ blockToMs opts (Para inlines) = do
splitSentences inlines
return $ text ".LP" $$ contents
blockToMs _ b@(RawBlock f str)
- | f == Format "man" = return $ text str
- | otherwise = do
+ | f == Format "ms" = return $ text str
+ | otherwise = do
report $ BlockNotRendered b
return empty
blockToMs _ HorizontalRule =
@@ -432,8 +432,8 @@ inlineToMs opts (Math DisplayMath str) = do
Right r -> return $
cr <> text ".EQ" $$ text (escapeBar r) $$ text ".EN"
inlineToMs _ il@(RawInline f str)
- | f == Format "man" = return $ text str
- | otherwise = do
+ | f == Format "ms" = return $ text str
+ | otherwise = do
report $ InlineNotRendered il
return empty
inlineToMs _ (LineBreak) = return $ cr <> text ".br" <> cr