mirror of https://github.com/mpastell/Weave.jl
Fix semicolon for term chunks, fixes #56
parent
827934dfa6
commit
4bc881378b
|
@ -159,7 +159,7 @@ function capture_output(expr, SandBox::Module, term, disp, plotlib,
|
|||
rw, wr = redirect_stdout()
|
||||
try
|
||||
obj = eval(SandBox, expr)
|
||||
if term || disp
|
||||
if (term || disp) && typeof(expr) == Expr && expr.head != :toplevel
|
||||
obj != nothing && display(obj)
|
||||
elseif typeof(expr) == Symbol
|
||||
display(obj)
|
||||
|
|
Loading…
Reference in New Issue