Skip to content

Commit

Permalink
Filter invalid characters in repr_limited (#289)
Browse files Browse the repository at this point in the history
* filter invalid characters in repr_limited
  • Loading branch information
pfitzseb authored May 5, 2021
1 parent b20a447 commit 68bb4d3
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 119 deletions.
2 changes: 1 addition & 1 deletion src/printing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function repr_limited(val, n, f=show)
limited_str = suppressed("printing error")
end
end
return limited_str
return filter(isvalid, limited_str)
end

function print_var(io::IO, var::JuliaInterpreter.Variable)
Expand Down
Loading

0 comments on commit 68bb4d3

Please sign in to comment.