diff --git a/csv_to_table/Cargo.toml b/csv_to_table/Cargo.toml index ffae57d3..c1210abe 100644 --- a/csv_to_table/Cargo.toml +++ b/csv_to_table/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "csv_to_table" -version = "0.3.0" +version = "0.4.0" edition = "2018" authors = ["Maxim Zhiburt "] repository = "https://github.com/zhiburt/tabled" diff --git a/json_to_table/Cargo.toml b/json_to_table/Cargo.toml index 62046167..15890a59 100644 --- a/json_to_table/Cargo.toml +++ b/json_to_table/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json_to_table" -version = "0.6.0" +version = "0.7.0" edition = "2018" authors = ["Maxim Zhiburt "] repository = "https://github.com/zhiburt/tabled" diff --git a/json_to_table/src/table/collapsed_table.rs b/json_to_table/src/table/collapsed_table.rs index 286d07c3..e84a40d3 100644 --- a/json_to_table/src/table/collapsed_table.rs +++ b/json_to_table/src/table/collapsed_table.rs @@ -7,7 +7,6 @@ use std::{ use serde_json::Map; use tabled::{ builder::Builder, - col, grid::{ config::{AlignmentHorizontal, AlignmentVertical, ColoredConfig, Entity, Offset}, dimension::{Dimension, Estimate}, @@ -315,7 +314,7 @@ fn generate_vertical_object( let key = config_string(key, &cfg.cfg, max_key_width, entry_height); - let mut key = col![key]; + let mut key = tabled::builder::Builder::from(vec![vec![key]]).build(); key.with(cfg.cfg.clone()); key.with(NoRightBorders); @@ -514,7 +513,7 @@ fn generate_horizontal_object( fn generate_value_cell(value: &str, cfg: &Config, ctx: PrintContext) -> CellData { let value = config_string(value, &cfg.cfg, ctx.size.width, ctx.size.height); - let mut table = col![value]; + let mut table = tabled::builder::Builder::from(vec![vec![value]]).build(); table.with(cfg.cfg.clone()); if !ctx.is_last_row || ctx.no_bottom { diff --git a/static_table/Cargo.toml b/static_table/Cargo.toml index 5983e18b..17f6460c 100644 --- a/static_table/Cargo.toml +++ b/static_table/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "static_table" -version = "0.2.1" +version = "0.3.0" authors = ["Maxim Zhiburt "] edition = "2018" description = "Library creates pretty tables at compiler time" diff --git a/table_to_html/Cargo.toml b/table_to_html/Cargo.toml index a0882a4c..5e432e8f 100644 --- a/table_to_html/Cargo.toml +++ b/table_to_html/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "table_to_html" -version = "0.3.0" +version = "0.4.0" edition = "2018" authors = ["Maxim Zhiburt "] description = "The library provides a interface to convert a `tabled::Table` into a HTML table (``)." diff --git a/toml_to_table/Cargo.toml b/toml_to_table/Cargo.toml index c2a6dbee..351b57d8 100644 --- a/toml_to_table/Cargo.toml +++ b/toml_to_table/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "toml_to_table" -version = "0.2.0" +version = "0.3.0" edition = "2018" authors = ["Maxim Zhiburt "] repository = "https://github.com/zhiburt/tabled"