-
Notifications
You must be signed in to change notification settings - Fork 10
Error in multiline cells #14
Copy link
Copy link
Closed
Description
Hello,
I get the following error when I use the multiline cell:
+---+-----+
| a | b |
+---+-----+
thread 'main' panicked at 'Available dimensions for a cell are smaller than required. Please create an issue in https://github.com/devashishdxt/cli-table', /home/spirali/.cargo/git/checkouts/cli-table-957cc8afb9d2904a/73da33b/cli-table/src/cell.rs:124:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Code:
use cli_table::{Cell, print_stdout, Table, Style, Color};
fn main() {
let mut rows = vec![
vec!["a".cell(), "b".cell()],
vec!["c".cell(), "xxx\nxxx\n".cell()]
];
let table = rows.table();
assert!(print_stdout(table).is_ok());
}Tested on the current master (73da33b)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels