tj / terminal-table

Ruby ASCII Table Generator, simple and feature rich.
MIT License
1.53k stars 121 forks source link

Can we add a separator per cell? #98

Open KINGSABRI opened 6 years ago

KINGSABRI commented 6 years ago

Hello there, Is there a way to add a separator per cell?

example (notice host1's tcp and udp protocols)

# +------------+-----------+-------+
# |           Cheatsheet           |        
# +------------+-----------+-------+
# | Host       | Protocols | Ports |
# +------------+-----------+-------+
# | host1      | tcp       | 80    |
# |            |           | 443   |
# |            |           | 445   |
# |            +-----------+-------+
# |            | udp       | 21    |
# |            |           | 22    |
# |            |           | 23    |
# |            |           | 24    |
# +------------+-----------+-------+
# | host2      | tcp       | 123   |
# +------------+-----------+-------+
# | host3      | udb       | 123   |
# +------------+-----------+-------+
ignazioc commented 6 years ago

I would <3 this. I often have data with more than 2 dimensions.