From 2575cc6f74c17fc73197b7f6003772ed316b4751 Mon Sep 17 00:00:00 2001 From: hcpl Date: Mon, 29 May 2017 11:08:08 +0300 Subject: Revert and apply table format changes * FORMAT_NO_LINESEP_WITH_TITLE: Because of how everywhere else the render has thin title separator: - code now behaves like the old version; - changed its rustdoc description. * FORMAT_NO_LINESEP: This format has no line separators, but this fact doesn't apply to borders. - add top and bottom separators; - update the corresponding example. * FORMAT_BORDERS_ONLY: - remove delimiter lines between non-titles. --- src/format.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/format.rs') diff --git a/src/format.rs b/src/format.rs index d516895..bc093ac 100644 --- a/src/format.rs +++ b/src/format.rs @@ -310,7 +310,7 @@ pub mod consts { /// ```text /// +----+----+ /// | T1 | T2 | - /// +====+====+ + /// +----+----+ /// | a | b | /// | c | d | /// +----+----+ @@ -318,7 +318,7 @@ pub mod consts { pub static ref FORMAT_NO_LINESEP_WITH_TITLE: TableFormat = FormatBuilder::new() .column_separator('|') .borders('|') - .separator(LinePosition::Title, *EQU_PLUS_SEP) + .separator(LinePosition::Title, *MINUS_PLUS_SEP) .separator(LinePosition::Bottom, *MINUS_PLUS_SEP) .separator(LinePosition::Top, *MINUS_PLUS_SEP) .padding(1, 1) @@ -387,7 +387,6 @@ pub mod consts { /// ``` pub static ref FORMAT_BORDERS_ONLY: TableFormat = FormatBuilder::new() .padding(1, 1) - .separator(LinePosition::Intern, *MINUS_PLUS_SEP) .separator(LinePosition::Title, *EQU_PLUS_SEP) .separator(LinePosition::Bottom, *MINUS_PLUS_SEP) .separator(LinePosition::Top, *MINUS_PLUS_SEP) -- cgit v1.2.3