Skip to content

Commit

Permalink
Make printed table markdown-friendly (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoboat authored Jul 6, 2022
1 parent 6380658 commit 9464c8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
// configurePrinterStyling accepts a pointer to a table printer and sets up the styles commonly used across them
// resulting in uniform tabular output to STDOUT following each run of the CLI
func configurePrinterStyling(printer *tableprinter.Printer) {
printer.BorderTop, printer.BorderBottom, printer.BorderLeft, printer.BorderRight = true, true, true, true
printer.CenterSeparator = ""
printer.ColumnSeparator = ""
printer.RowSeparator = ""
printer.BorderTop, printer.BorderBottom, printer.BorderLeft, printer.BorderRight = false, false, true, true
printer.CenterSeparator = "|"
printer.ColumnSeparator = "|"
printer.RowSeparator = "-"
printer.HeaderBgColor = tablewriter.BgBlackColor
printer.HeaderFgColor = tablewriter.FgGreenColor
}
Expand Down

0 comments on commit 9464c8e

Please sign in to comment.