diff --git a/REQUIRE b/REQUIRE index b57f9a7..9dde7fa 100644 --- a/REQUIRE +++ b/REQUIRE @@ -6,3 +6,4 @@ Highlights Mustache Documenter YAML +Compat 0.17.0 \ No newline at end of file diff --git a/src/chunks.jl b/src/chunks.jl index 750137e..1e4a303 100644 --- a/src/chunks.jl +++ b/src/chunks.jl @@ -1,6 +1,7 @@ +using Compat -abstract WeaveChunk -abstract Inline +@compat abstract type WeaveChunk end +@compat abstract type Inline end type WeaveDoc source::AbstractString diff --git a/src/display_methods.jl b/src/display_methods.jl index f52e974..b8e7116 100644 --- a/src/display_methods.jl +++ b/src/display_methods.jl @@ -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 diff --git a/src/run.jl b/src/run.jl index e200b1e..7214c28 100644 --- a/src/run.jl +++ b/src/run.jl @@ -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