Browse Source

Remove invokelatest from IJulia.limitstringmime

pull/54/head
Takafumi Arakaki 7 years ago
parent
commit
41a46a88d2
  1. 6
      src/IJulia.jl

6
src/IJulia.jl

@ -56,16 +56,14 @@ function limitstringmime(mime::MIME, x) @@ -56,16 +56,14 @@ function limitstringmime(mime::MIME, x)
if israwtext(mime, x)
return String(x)
else
# show(IOContext(buf, :limit=>true, :color=>true), mime, x)
Base.invokelatest(show, IOContext(buf, :limit=>true, :color=>true), mime, x)
show(IOContext(buf, :limit=>true, :color=>true), mime, x)
end
else
b64 = Base64EncodePipe(buf)
if isa(x, Vector{UInt8})
write(b64, x) # x assumed to be raw binary data
else
# show(IOContext(b64, :limit=>true, :color=>true), mime, x)
Base.invokelatest(show, IOContext(b64, :limit=>true, :color=>true), mime, x)
show(IOContext(b64, :limit=>true, :color=>true), mime, x)
end
close(b64)
end

Loading…
Cancel
Save