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)..
This allows a greater range of delimiters allowed in tables, including multi-character delimiters like ||, or null delimiters "". This furthermore allows us to create tables with no outer borders.
Here are two examples of new table styles created with this.
Using asciiDoubleS:
├────────────────────────────┼───────────────────────────────────────────────────────────────────┤
│ │ ++-------------------++-------------------++-----++ │
│ len spec: expand │ || Some text || Some numbers || X || │
│ position: left │ ++-------------------++-------------------++-----++ │
│ alignment: no align │ || This is long text || 4.20000000 || foo || │
│ │ || Short || 200300400500600.2 || bar || │
│ │ ++-------------------++-------------------++-----++ │
├────────────────────────────┼───────────────────────────────────────────────────────────────────┤
Using withoutBorders unicodeS:
├────────────────────────────┼───────────────────────────────────────────────────────────────────┤
│ len spec: expand │ Some text │ Some numbers │ X │
│ position: left │ ═══════════════════╪═══════════════════╪═════ │
│ alignment: no align │ This is long text │ 4.20000000 │ foo │
│ │ Short │ 200300400500600.2 │ bar │
├────────────────────────────┼───────────────────────────────────────────────────────────────────┤
Fixes #17.
This allows a greater range of delimiters allowed in tables, including multi-character delimiters like
||
, or null delimiters""
. This furthermore allows us to create tables with no outer borders.Here are two examples of new table styles created with this.
Using
asciiDoubleS
:Using
withoutBorders unicodeS
: