Tabel Formatter
This lib is used to format plain-text table.
Example
Code:
let mut cells: = vec!;
cells.append;
let table = from_cells.with_header.with_footer;
let render_res = table.render;
println!;
Output:
────────────────────────────────────────────────────────────
| Cell Row Left Middle Right |
|──────────────────────────────────────────────────────────|
| Cell Row: 0 Left Middle Right |
| Cell Row: 1 Left Middle Right |
| Cell Row: 2 Left Middle Right |
| Cell Row: 3 Left Middle Right |
────────────────────────────────────────────────────────────
Future Plan
Write a macro for a better experience when building the table.
Support cross-cell text.
License
MIT or Apache-2.0