Use compact output for IO

pull/117/head
Matti Pastell 2018-01-03 15:48:14 +02:00
parent 51641124b5
commit 6c149b383c
1 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,11 @@ end
#Text is written to stdout, called from "term" mode chunks
function Base.display(report::Report, m::MIME"text/plain", data)
s = reprmime(m, data)
io = PipeBuffer()
show(IOContext(io, :limit => true), m, data)
flush(io)
s = readstring(io)
close(io)
println(s)
end