Ms writer: fixed rawblock/inline to accept "ms" format.
This commit is contained in:
parent
718254340f
commit
4248231a7e
1 changed files with 4 additions and 4 deletions
|
@ -233,7 +233,7 @@ blockToMs opts (Para inlines) = do
|
||||||
splitSentences inlines
|
splitSentences inlines
|
||||||
return $ text ".LP" $$ contents
|
return $ text ".LP" $$ contents
|
||||||
blockToMs _ b@(RawBlock f str)
|
blockToMs _ b@(RawBlock f str)
|
||||||
| f == Format "man" = return $ text str
|
| f == Format "ms" = return $ text str
|
||||||
| otherwise = do
|
| otherwise = do
|
||||||
report $ BlockNotRendered b
|
report $ BlockNotRendered b
|
||||||
return empty
|
return empty
|
||||||
|
@ -432,7 +432,7 @@ inlineToMs opts (Math DisplayMath str) = do
|
||||||
Right r -> return $
|
Right r -> return $
|
||||||
cr <> text ".EQ" $$ text (escapeBar r) $$ text ".EN"
|
cr <> text ".EQ" $$ text (escapeBar r) $$ text ".EN"
|
||||||
inlineToMs _ il@(RawInline f str)
|
inlineToMs _ il@(RawInline f str)
|
||||||
| f == Format "man" = return $ text str
|
| f == Format "ms" = return $ text str
|
||||||
| otherwise = do
|
| otherwise = do
|
||||||
report $ InlineNotRendered il
|
report $ InlineNotRendered il
|
||||||
return empty
|
return empty
|
||||||
|
|
Loading…
Add table
Reference in a new issue