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
This commit is contained in:
Simon Christ 2020-04-21 17:47:28 +02:00 committed by GitHub
parent d1938c5e94
commit eba4d2442c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"