zhiburt / tabled

An easy to use library for pretty print tables of Rust structs and enums.
MIT License
2.01k stars 84 forks source link

Add a indent size #373

Open zhiburt opened 11 months ago

zhiburt commented 11 months ago

The idea is to have an ability to increase an amount of vertical lines.

Though I wonder if it's useful enough as it could be implemented via empty columns and I guess somewhat else too.

.-----------------------------------------------------------.
|   ||| 0      ||| 1      ||| 2      ||| 3        ||| 4     |
| 0 ||| And    ||| Little ||| When   ||| I        ||| You   |
| 1 ||| the    ||| boy    ||| you    ||| don't    ||| know  |
| 2 ||| cat's  ||| blue   ||| comin' ||| know     ||| we'll |
| 3 ||| in     ||| and    ||| home   ||| when,    ||| have  |
| 4 ||| the    ||| the    ||| dad?   ||| but      ||| a     |
| 5 ||| cradle ||| man    |||        ||| we'll    ||| good  |
| 6 ||| and    ||| on     |||        ||| get      ||| time  |
| 7 ||| the    ||| the    |||        ||| together ||| then  |
| 8 ||| silver ||| moon   |||        ||| then     |||       |
| 9 ||| spoon  |||        |||        ||| son      |||       |
'-----------------------------------------------------------'

Note: It's a simple but involving task