mirror of https://github.com/mpastell/Weave.jl
Merge c3d1c1a071
into e10aaefd94
commit
53b7fd296a
|
@ -24,6 +24,7 @@ const _DEFAULT_PARAMS = Dict{Symbol,Any}(
|
|||
:fig_env => nothing,
|
||||
:out_width => nothing,
|
||||
:out_height => nothing,
|
||||
:print => false,
|
||||
)
|
||||
const DEFAULT_PARAMS = deepcopy(_DEFAULT_PARAMS) # might be changed at runtime
|
||||
|
||||
|
|
|
@ -43,7 +43,11 @@ function Base.display(report::Report, data)
|
|||
if !istextmime(m)
|
||||
Base.invokelatest(display, report, m, data)
|
||||
elseif report.cur_chunk.options[:term]
|
||||
Base.invokelatest(display, report, "text/plain", data)
|
||||
if report.cur_chunk.options[:print]
|
||||
print(data)
|
||||
else
|
||||
Base.invokelatest(display, report, "text/plain", data)
|
||||
end
|
||||
else
|
||||
Base.invokelatest(display, report, m, data)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue