| 3 | using Row_t = Table::Row_t; |
| 4 | |
| 5 | int main() { |
| 6 | Table table; |
| 7 | |
| 8 | table.add_row(Row_t{"This paragraph contains a veryveryveryveryveryverylong " |
| 9 | "word. The long word will " |
| 10 | "break and word wrap to the next line.", |
| 11 | "This paragraph \nhas embedded '\\n' \ncharacters and\n " |
| 12 | "will break\n exactly " |
| 13 | "where\n you want it\n to\n break."}); |
| 14 | |
| 15 | table[0][0].format().width(20); |
| 16 | table[0][1].format().width(50); |
| 17 | |
| 18 | std::cout << table << std::endl; |
| 19 | } |