terminaltables
terminaltables copied to clipboard
Tables in tables
Hi,
Doesn't seem to support tables in tables. I tried:
table = SingleTable(table_data,"Work logs") outer_table = SingleTable([[""],[table.table]],"outer") print outer_table.table
But got the following table, not sure if this will show correctly but the issue is that the "outer" right hand column lines are not in-line for the rows where the second table is inserted.
This doesn't make much sense to me as the second table is just a string with '\n' in it is it not? So it should be able to figure out the "width" of the inner table but doesn't seem to calculate it correctly.
┌outer────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
├─────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ┌Work logs──────┬─────────────────────────────────────────┬───────────┐ │
│ │ author │ comment │ timeSpent │ │
│ ├───────────────┼─────────────────────────────────────────┼───────────┤ │
│ │ Alan Wakeford │ Review ODUC_MUX vplan (TP + initial TC) │ 1d │ │
│ └───────────────┴─────────────────────────────────────────┴───────────┘ │
└─────────────────────────────────────────────────────────────────────────────────────────────────┘