Demonstrates the fix for https://github.com/p-ranav/tabulate/issues/96: Format::indent(n) prefixes every rendered line with n spaces, shifting the whole table to the right in the terminal.
| 6 | // Format::indent(n) prefixes every rendered line with n spaces, shifting the |
| 7 | // whole table to the right in the terminal. |
| 8 | int main() { |
| 9 | Table table; |
| 10 | table.add_row(Row_t{"Command", "Description"}); |
| 11 | table.add_row(Row_t{"git status", "List all new or modified files"}); |
| 12 | table.format().indent(4); |
| 13 | |
| 14 | std::cout << table << std::endl; |
| 15 | } |