terminaltables icon indicating copy to clipboard operation
terminaltables copied to clipboard

Tables in tables

Open awakeford opened this issue 8 years ago • 0 comments

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        │ │
│ └───────────────┴─────────────────────────────────────────┴───────────┘                   │
└─────────────────────────────────────────────────────────────────────────────────────────────────┘

awakeford avatar Mar 23 '16 01:03 awakeford