muesli4 / table-layout

Layout data in grids and pretty tables. Provides a lot of tools to get the cell formatting right (positional alignment, alignment on specific characters and limiting of cell width)..
BSD 3-Clause "New" or "Revised" License
37 stars 11 forks source link

Restore rounded ASCII style #47

Closed muesli4 closed 1 year ago

muesli4 commented 1 year ago

Do not use + on the outside of the table.

Testing done

> putStrLn $ tableString [def, def] (roundedAsciiTableStyleFromSpec $ simpleTableStyleSpec SingleLine SingleLine) (titlesH ["row a", "row b"]) (titlesH ["col a", "col b"]) [rowG ["a", "b"], rowG ["c", "d"]]
.-------.-------.-------.
|       | col a | col b |
:-------+-------+-------:
| row a | a     | b     |
:-------+-------+-------:
| row b | c     | d     |
'-------'-------'-------'

I also went through some other rounded styles with and without header. I did not see any issues.

muesli4 commented 1 year ago

Looks good! Sorry for missing these cases.

No worries. This is to be expected with big changes.