table_formatter-0.5.1 has been yanked.
Tabel Formatter
This lib is used to format plain-text table.
Example
Code:
use Itertools;
use ;
use ;
let table_header = vec!;
let table_cells = ;
let table = table! ;
let mut buffer = vec!;
table.render.unwrap;
println!;
Output:
────────────────────────────────────────────────────────────
| Cell Row Left Center Right |
|──────────────────────────────────────────────────────────|
| Cell Row Left Center Right |
| Cell Row Left Center Right |
| Cell Row Left Center Right |
| Cell Row Left Center Right |
| Cross Cell! |
────────────────────────────────────────────────────────────
Actually the border of the table is bold, but it cannot be rendered in markdown.
Future Plan
Waiting for report :)
Change Log
V0.5.1
- Changed the api of formatter, and add a macro wrapper for them.
- Added documentations.
If you are using the formatter, you just need to change your
vec!s intofmt!s.
V0.5.0
New features
- Add render target: Markdown.
- Add cross-cell support.
- Add macro support.
Warning
This version is Completely Incompatible with previous versions.
License
MIT or Apache-2.0