mirror of https://github.com/mpastell/Weave.jl
Fixed a few deprecation warnings
parent
3830ef9e54
commit
8ce6840c1b
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue