aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-20 22:59:30 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-20 22:59:30 -0700
commit3ec0b78343c927cedb00eadf057e26bbd61494c2 (patch)
treeeb96290b77e837674e3a9fcd7daa9d611c063ce3
parent9593b375d747d681db0d3aba3af0f1ffd2db0f2f (diff)
downloadpandoc-3ec0b78343c927cedb00eadf057e26bbd61494c2.tar.gz
Man reader: allow unescaped " in plain arguments.
-rw-r--r--src/Text/Pandoc/Readers/Man.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Man.hs b/src/Text/Pandoc/Readers/Man.hs
index 9ef20be0e..169bd03c8 100644
--- a/src/Text/Pandoc/Readers/Man.hs
+++ b/src/Text/Pandoc/Readers/Man.hs
@@ -337,7 +337,12 @@ lexMacro = do
plainArg = do
-- TODO skip initial spaces, then parse many linePart til a spaec
skipMany spacetab
- many (macroArg <|> esc <|> regularText)
+ many (macroArg <|> esc <|> regularText <|> unescapedQuote)
+ where unescapedQuote = do
+ char '"'
+ fonts <- currentFont
+ return $ RoffStr ("\"", fonts)
+
quotedArg :: PandocMonad m => ManLexer m [LinePart]
quotedArg = do