no ANSI chars

pull/311/head
Shuhei Kadowaki 2020-05-07 22:03:55 +09:00
parent 7b53eb8e9e
commit 5fb3fae741
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ Base.display(report::Report, m::MIME"application/pdf", data) = add_figure(report
# Text is written to stdout, called from "term" mode chunks
function Base.display(report::Report, m::MIME"text/plain", data)
io = PipeBuffer()
show(IOContext(io, :limit => true, :color => true), m, data)
show(IOContext(io, :limit => true), m, data)
flush(io)
s = read(io, String)
close(io)
@ -110,7 +110,7 @@ end
# Catch "rich_output"
function Base.display(report::Report, m::MIME"text/html", data)
io = IOBuffer()
show(IOContext(io, :limit => true, :color => true), m, data)
show(IOContext(io, :limit => true), m, data)
report.rich_output *= "\n" * String(take!(io))
end