[BUG] weave
with some doctypes creates a tempdir that is not deleted
#440
Labels
weave
with some doctypes creates a tempdir that is not deleted
#440
description
Using
weave
withdoctype=md2html
and leavingfig_path
unspecified results in a temp dir (the kind made bymktempdir
) left in theout_path
. My guess is this code is responsible.This behaviour is inconsistent with the doc, which says it will default to
DEFAULT_FIG_PATH
:If a tempdir is used, I would expect it to be deleted after calling the function that creates it.
versions
minimum reproducible steps
I have only tested with
doctype="md2html"
but I think it would be true of any doctype that ends with"2pdf"
or"2html"
.Example document called
weave_test.jl
:weave call which creates a tempdir that is not deleted:
weave call which creates a "figures" dir as expected, and no tempdir:
The output HTML is as expected:

The text was updated successfully, but these errors were encountered: