Features
Already implemented
- padding
- padding in columns
- padding in rows
- orientation of padding for cell content: specify as left or right padding, resulting in left or right alignment of content of cells
- specify characters used for display
- character for intersection specifiable
- character for emptyness can be configured
- character for row separation
- character for column separation
Wanted
arbitrary content
The idea is to use arbitrary strings as contents for grids, even if the strings itself are grids, so that one can have arbitrary nesting of grids.
How would one go about implementing it?
- find the longest line of the inner grid
- make cells of the width of the inner grid plus any padding or margin