git.iko.soy/typeable/pandoc
on master help sign in
Don't print warnings for not-found packages, includes.
commit93dad75a48244e35b67557d63a232d21875c3664 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSat 4 Feb 2012, 13:31 (15 years ago) parent3f87c43
1 file changed+1−4
src/Text/Pandoc/Readers/LaTeX.hs+1−4
src/Text/Pandoc/Readers/LaTeX.hs+1−4
@@ -536,10 +536,7 @@ handleIncludes :: String -> IO String
536536handleIncludes [] = return []
537537handleIncludes ('\\':xs) =
538538 case runParser include defaultParserState "input" ('\\':xs) of
539− Right (f, rest) -> do ys <- catch (readFile f)
540− (\e -> warn
541− ("could not open included file `" ++
542− f ++ "': " ++ show e) >> return "")
539+ Right (f, rest) -> do ys <- catch (readFile f) (\_ -> return "")
543540 (ys ++) `fmap` handleIncludes rest
544541 _ -> case runParser verbatimEnv defaultParserState "input" ('\\':xs) of
545542 Right (r, rest) -> (r ++) `fmap` handleIncludes rest