Fixed a few deprecation warnings

pull/17/head
Matti Pastell 2014-12-04 00:01:38 +02:00
parent 3830ef9e54
commit 8ce6840c1b
2 changed files with 4 additions and 5 deletions

View File

@ -18,7 +18,7 @@ type Report <: Display
cur_chunk::Dict
function Report()
new("", false, "", "", Any[], "", "", {}, "", 1, {}, @compat Dict{Symbol, Any}())
new("", false, "", "", Any[], "", "", Any[], "", 1, Any[], @compat Dict{Symbol, Any}())
end
end
@ -26,9 +26,8 @@ end
const report = Report()
const supported_mime_types =
{
MIME"image/png",
MIME"text/plain" }
[MIME"image/png",
MIME"text/plain"]
function display(doc::Report, data)
for m in supported_mime_types

View File

@ -48,7 +48,7 @@ function format_codechunk(chunk, formatdict)
result = format_termchunk(chunk, formatdict)
else
if chunk[:wrap]
chunk[:result] = "\n" * wrap(chunk[:result])
chunk[:result] = "\n" * wrap(chunk[:result], replace_whitespace=false)
end
if chunk[:echo]