Minor changes
This commit is contained in:
parent
90d43be2fb
commit
45e97e4535
@ -1513,7 +1513,6 @@ Base.show(gp::SessionID) = nothing
|
|||||||
Base.show(io::IO, gp::SessionID) = nothing
|
Base.show(io::IO, gp::SessionID) = nothing
|
||||||
function Base.show(io::IO, ::MIME"image/svg+xml", gp::SessionID)
|
function Base.show(io::IO, ::MIME"image/svg+xml", gp::SessionID)
|
||||||
if gp.dump && enableExportThroughShow()
|
if gp.dump && enableExportThroughShow()
|
||||||
println("SVG")
|
|
||||||
tmpfile = tempname()*".svg"
|
tmpfile = tempname()*".svg"
|
||||||
save(gp.sid; term=options.term_svg, output=tmpfile)
|
save(gp.sid; term=options.term_svg, output=tmpfile)
|
||||||
write(io, read(tmpfile))
|
write(io, read(tmpfile))
|
||||||
@ -1523,7 +1522,6 @@ function Base.show(io::IO, ::MIME"image/svg+xml", gp::SessionID)
|
|||||||
end
|
end
|
||||||
function Base.show(io::IO, ::MIME"image/png", gp::SessionID)
|
function Base.show(io::IO, ::MIME"image/png", gp::SessionID)
|
||||||
if gp.dump && enableExportThroughShow()
|
if gp.dump && enableExportThroughShow()
|
||||||
println("PNG")
|
|
||||||
tmpfile = tempname()*".png"
|
tmpfile = tempname()*".png"
|
||||||
save(gp.sid; term=options.term_png, output=tmpfile)
|
save(gp.sid; term=options.term_png, output=tmpfile)
|
||||||
write(io, read(tmpfile))
|
write(io, read(tmpfile))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user