MCPcopy Create free account
hub / github.com/p-ranav/tabulate / main

Function main

samples/nested_table_hidden_border.cpp:8–18  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
8int 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}

Callers

nothing calls this directly

Calls 2

add_rowMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected