summaryrefslogtreecommitdiffstats
path: root/src/format.rs
diff options
context:
space:
mode:
authorPierre-Henri Symoneaux <phsym@users.noreply.github.com>2017-05-29 12:08:22 +0200
committerGitHub <noreply@github.com>2017-05-29 12:08:22 +0200
commit01db5497c5cd2d5020b6740b7a07cc626c8aa641 (patch)
treecbb2122a5c65c8ba99a2d91a000a10df96f53234 /src/format.rs
parent2b9c98703ef8c3ea6caf45ca179490b280ca976c (diff)
parent2575cc6f74c17fc73197b7f6003772ed316b4751 (diff)
Merge pull request #54 from hcpl/fix-consts-formats
Fix predefined formats to match their descriptions
Diffstat (limited to 'src/format.rs')
-rw-r--r--src/format.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/format.rs b/src/format.rs
index 49e1a96..bc093ac 100644
--- a/src/format.rs
+++ b/src/format.rs
@@ -310,7 +310,7 @@ pub mod consts {
/// ```text
/// +----+----+
/// | T1 | T2 |
- /// +====+====+
+ /// +----+----+
/// | a | b |
/// | c | d |
/// +----+----+
@@ -337,6 +337,8 @@ pub mod consts {
pub static ref FORMAT_NO_LINESEP: TableFormat = FormatBuilder::new()
.column_separator('|')
.borders('|')
+ .separator(LinePosition::Bottom, *MINUS_PLUS_SEP)
+ .separator(LinePosition::Top, *MINUS_PLUS_SEP)
.padding(1, 1)
.build();
@@ -385,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)