ANSI colors in the data
apognu opened this issue · comments
Antoine POPINEAU commented
Hi,
I generate tables with colors already included in the strings that form the rows. I do this because some of my column have a "state" meaning, and some cells will be red and other green. Here's what my rows could look like:
rows = [
[ "First", IO.ANSI.format([:red, "Hello"]), "Last" ],
...
]
When I render the table, the spacings are all mangled, as if the length could not be computed properly. The columns containing colored cells are wider than they should be.
Am I missing something or is colored text in cells not supported yet?
Darian Moody commented
Geoffrey Lessel commented