aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-06-19 11:17:34 -0700
committerJohn MacFarlane <[email protected]>2023-06-19 11:18:30 -0700
commit83fcd0031a100bebad58a193e3b0bd69d4023f5e (patch)
treec8aca947ec8644b40aaeed01116e5e5a3a1d8978
parent725ec09a104d8ad486989f32a4c55d9d731629ea (diff)
Add Extracting log message for `--extract-media`.
This message will also be triggered when media is being extracted to a temporary location, e.g. in PDF production.
-rw-r--r--src/Text/Pandoc/Class/IO.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Class/IO.hs b/src/Text/Pandoc/Class/IO.hs
index 534878a9e..a4b7d1333 100644
--- a/src/Text/Pandoc/Class/IO.hs
+++ b/src/Text/Pandoc/Class/IO.hs
@@ -226,6 +226,7 @@ writeMedia dir (fp, _mt, bs) = do
-- we normalize to get proper path separators for the platform
let fullpath = normalise $ dir </> unEscapeString fp
liftIOError (createDirectoryIfMissing True) (takeDirectory fullpath)
+ report $ Extracting (T.pack fullpath)
logIOError $ BL.writeFile fullpath bs
-- | If the given Inline element is an image with a @src@ path equal to