git.iko.soy/typeable/pandoc
on master help sign in
Man reader: remove commented-out code.
commiteaef8495366f799adefa71d4109a940dfd7d99a2 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 19 Oct 2018, 23:29 (8 years ago) parent7dd06e9
1 file changed−23
src/Text/Pandoc/Readers/Man.hs−23
src/Text/Pandoc/Readers/Man.hs−23
@@ -85,29 +85,6 @@ instance Default RoffState where
8585type ManLexer m = ParserT [Char] RoffState m
8686type ManParser m = ParserT [ManToken] ParserState m
8787
88−---- debug functions
89−{-
90−import Text.Pandoc.Class (runIOorExplode)
91−
92−printPandoc :: Pandoc -> [Char]
93−printPandoc (Pandoc m content) =
94− let ttl = "Pandoc: " ++ (show $ unMeta m)
95− cnt = intercalate "\n" $ map show content
96− in ttl ++ "\n" ++ cnt
97−
98−testStr :: String -> IO ()
99−testStr str = do
100− pand <- runIOorExplode $ readMan def (T.pack str)
101− putStrLn $ printPandoc pand
102−
103−
104−testFile :: FilePath -> IO ()
105−testFile fname = do
106− cont <- readFile fname
107− testStr cont
108−-}
109−----
110−
11188
11289-- | Read man (troff) from an input string and return a Pandoc document.
11390readMan :: PandocMonad m => ReaderOptions -> T.Text -> m Pandoc