Skip to content

Commit 68bb4d3

Browse files
authored
Filter invalid characters in repr_limited (#289)
* filter invalid characters in repr_limited
1 parent b20a447 commit 68bb4d3

File tree

3 files changed

+121
-119
lines changed

3 files changed

+121
-119
lines changed

src/printing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function repr_limited(val, n, f=show)
1616
limited_str = suppressed("printing error")
1717
end
1818
end
19-
return limited_str
19+
return filter(isvalid, limited_str)
2020
end
2121

2222
function print_var(io::IO, var::JuliaInterpreter.Variable)

0 commit comments

Comments
 (0)