mirror of https://github.com/mpastell/Weave.jl
Use compat for abstract types
parent
c788f5f15e
commit
868efa8208
|
@ -1,6 +1,7 @@
|
|||
using Compat
|
||||
|
||||
abstract WeaveChunk
|
||||
abstract Inline
|
||||
@compat abstract type WeaveChunk end
|
||||
@compat abstract type Inline end
|
||||
|
||||
type WeaveDoc
|
||||
source::AbstractString
|
||||
|
|
|
@ -30,7 +30,6 @@ function Base.display(report::Report, data)
|
|||
#Set preferred mimetypes for report based on format
|
||||
for m in report.mimetypes
|
||||
if mimewritable(m, data)
|
||||
info(data)
|
||||
try
|
||||
display(report, m, data)
|
||||
catch
|
||||
|
|
|
@ -213,9 +213,8 @@ function run_code(chunk::CodeChunk, report::Report, SandBox::Module)
|
|||
if rcParams[:plotlib] == "PyPlot"
|
||||
#Work around "old world"
|
||||
(@eval savep1(x) = savefigs_pyplot(x))
|
||||
savep2(x) = eval(Expr(:call, function() savep1( x ) end))
|
||||
savep2(x) = eval(Expr(:call, function() savep1(x) end))
|
||||
savep2(report)
|
||||
#savep(report)
|
||||
end
|
||||
|
||||
return results
|
||||
|
|
Loading…
Reference in New Issue