mirror of
https://github.com/nushell/nushell.git
synced 2025-08-16 03:47:54 +02:00
[DRAFT] Check fix for emojie, wrap issues (#13430)
Hi there Here I am using latest tabled. My tests shows it does fixes panics, but I am wanna be sure. @fdncred could you verify that it does fixes those panics/errors? Closes #13405 Closes #12786
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
use nu_ansi_term::{Color, Style};
|
||||
use nu_color_config::TextStyle;
|
||||
use nu_table::{NuTable, NuTableConfig, TableTheme};
|
||||
use tabled::grid::records::vec_records::CellInfo;
|
||||
use tabled::grid::records::vec_records::Text;
|
||||
|
||||
fn main() {
|
||||
let args: Vec<_> = std::env::args().collect();
|
||||
@ -80,10 +80,10 @@ fn make_table_data() -> (Vec<&'static str>, Vec<&'static str>) {
|
||||
(table_headers, row_data)
|
||||
}
|
||||
|
||||
fn to_cell_info_vec(data: &[&str]) -> Vec<CellInfo<String>> {
|
||||
fn to_cell_info_vec(data: &[&str]) -> Vec<Text<String>> {
|
||||
let mut v = vec![];
|
||||
for x in data {
|
||||
v.push(CellInfo::new(String::from(*x)));
|
||||
v.push(Text::new(String::from(*x)));
|
||||
}
|
||||
|
||||
v
|
||||
|
Reference in New Issue
Block a user