mirror of https://github.com/mpastell/Weave.jl
Strip ANSI from text output #184
parent
8d1bb63b0a
commit
73584edd34
|
@ -247,6 +247,7 @@ function capture_output(expr, SandBox::Module, term, disp,
|
|||
out = fetch(reader)
|
||||
close(rw)
|
||||
end
|
||||
out = replace(out, r"\u001b\[.*?m" => "") #Remove ANSI color codes
|
||||
return (obj, out)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue