Regression sample for https://github.com/p-ranav/tabulate/issues/56 A nested table containing a multi-line cell with a hidden left border used to render with misaligned/missing vertical borders in the outer table.
| 6 | // A nested table containing a multi-line cell with a hidden left border used |
| 7 | // to render with misaligned/missing vertical borders in the outer table. |
| 8 | int main() { |
| 9 | Table table; |
| 10 | table.add_row(Row_t{"key", "value1\nvalue2"}); |
| 11 | table[0][0].format().hide_border_left(); |
| 12 | |
| 13 | Table table2; |
| 14 | table2.add_row(Row_t{table}); |
| 15 | |
| 16 | std::cout << "first table :\n" << table << std::endl; |
| 17 | std::cout << "second table :\n" << table2 << std::endl; |
| 18 | } |