Merge pull request #462 from NicholasWMRitchie/nwmr

Force deletion of the temporary figure path to address Issue #440
pull/443/merge
Sebastian Pfitzner 2023-02-10 10:32:01 +01:00 committed by GitHub
commit af2a6e14c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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...
!isnothing(fig_path) && startswith(fig_path, "jl_") && rm(normpath(cwd, fig_path), force=true, recursive=true)
end
return doc