Force deletion of the temporary figure path to address Issue #440

pull/461/head
Nicholas W. M. Ritchie 2022-07-13 09:35:48 -04:00
parent b7941c2811
commit b669a14038
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ function run_doc(
@info "Weaved all chunks" progress=1 _id=PROGRESS_ID
cd_back()
popdisplay(report) # ensure display pops out even if internal error occurs
# Temporary fig_path is not automatically removed because it contains files so...
startswith(fig_path, "jl_") && rm(normpath(cwd, fig_path), force=true, recursive=true)
end
return doc