Skip to content

Commit 9464c8e

Browse files
authored
Make printed table markdown-friendly (#78)
1 parent 6380658 commit 9464c8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

printer/printer.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import (
1414
// configurePrinterStyling accepts a pointer to a table printer and sets up the styles commonly used across them
1515
// resulting in uniform tabular output to STDOUT following each run of the CLI
1616
func configurePrinterStyling(printer *tableprinter.Printer) {
17-
printer.BorderTop, printer.BorderBottom, printer.BorderLeft, printer.BorderRight = true, true, true, true
18-
printer.CenterSeparator = ""
19-
printer.ColumnSeparator = ""
20-
printer.RowSeparator = ""
17+
printer.BorderTop, printer.BorderBottom, printer.BorderLeft, printer.BorderRight = false, false, true, true
18+
printer.CenterSeparator = "|"
19+
printer.ColumnSeparator = "|"
20+
printer.RowSeparator = "-"
2121
printer.HeaderBgColor = tablewriter.BgBlackColor
2222
printer.HeaderFgColor = tablewriter.FgGreenColor
2323
}

0 commit comments

Comments
 (0)