From eba4d2442c87b4387d0c6b12ddc3108c5511937a Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 21 Apr 2020 17:47:28 +0200 Subject: [PATCH] don't add .tex to .tikz (#2607) * don't add .tex to .tikz If we reach this point, we already checked if the extension is existent. This used to append `.tex` if saving as `.tikz` file, which is unwanted. * Update output.jl * convert symbol to string --- src/output.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output.jl b/src/output.jl index 1bd5e9f3..003deec4 100644 --- a/src/output.jl +++ b/src/output.jl @@ -103,7 +103,7 @@ end function addExtension(fn::AbstractString, ext::AbstractString) try oldext = getExtension(fn) - if oldext == ext + if string(_savemap[oldext]) == ext return fn else return "$fn.$ext"