git.iko.soy/typeable/pandoc
on master help sign in
PDF: Don't crash with nonexistent image.
b0013bfJohn MacFarlane
src/Text/Pandoc/PDF.hs+2−1
@@ -131,7 +131,8 @@ handleImage' opts tmpdir (Image attr ils (src,tit)) = do
131 return $ Image attr ils (fname,tit)
131 return $ Image attr ils (fname,tit)
132 _ -> do
132 _ -> do
133 warn $ "Could not find image `" ++ src ++ "', skipping..."
133 warn $ "Could not find image `" ++ src ++ "', skipping..."
134+ -- return alt text
134− return $ Image attr ils (src,tit)
135+ return $ Emph ils
135handleImage' _ _ x = return x
136handleImage' _ _ x = return x
136
137
137convertImages :: FilePath -> Inline -> IO Inline
138convertImages :: FilePath -> Inline -> IO Inline