ronisbr / PrettyTables.jl

Print data in formatted tables.
MIT License
404 stars 38 forks source link

Show renderer is not escaping newlines for objects that are not string #194

Closed ronisbr closed 1 year ago

ronisbr commented 1 year ago
struct MyObject end

Base.show(io::IO, ::MyObject) = print(io, "a\nb\nc")

julia> pretty_table([mo mo], renderer = :show)
┌────────┬────────┐
│ Col. 1 │ Col. 2 │
├────────┼────────┤
│    a
b
c │    a
b
c │
└────────┴────────┘