summaryrefslogtreecommitdiffstats
path: root/src/format.rs
diff options
context:
space:
mode:
authorhcpl <hcpl.prog@gmail.com>2017-05-29 11:08:08 +0300
committerhcpl <hcpl.prog@gmail.com>2017-05-29 11:08:08 +0300
commit2575cc6f74c17fc73197b7f6003772ed316b4751 (patch)
tree3775b6ba09b627fa8342718e295355909e3bf7b8 /src/format.rs
parent3619959fb1f1e10a80e4630c772d5670b4f3dacb (diff)
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.
Diffstat (limited to 'src/format.rs')
-rw-r--r--src/format.rs5
1 files changed, 2 insertions, 3 deletions
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)