Add space to bottom of table in 'light' mode (#1871)

This commit is contained in:
Kelli Little 2020-05-22 20:12:26 -05:00 committed by GitHub
parent 9e6ab33fd7
commit 460daf029b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -262,6 +262,7 @@ pub fn autoview(context: RunnableContext) -> Result<OutputStream, ShellError> {
table.set_format(
FormatBuilder::new()
.separator(LinePosition::Title, LineSeparator::new('─', '─', ' ', ' '))
.separator(LinePosition::Bottom, LineSeparator::new(' ', ' ', ' ', ' '))
.padding(1, 1)
.build(),
);

View File

@ -357,6 +357,7 @@ impl RenderView for TableView {
table.set_format(
FormatBuilder::new()
.separator(LinePosition::Title, LineSeparator::new('─', '─', ' ', ' '))
.separator(LinePosition::Bottom, LineSeparator::new(' ', ' ', ' ', ' '))
.padding(1, 1)
.build(),
);