From dcf1a90c318d63894d09fe78c1ef329dea6a1b8b Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 7 Sep 2021 08:41:03 +0200 Subject: [PATCH] fix: tables align output again Closes https://git.coopcloud.tech/coop-cloud/go-abra/issues/16. --- cli/formatter/formatter.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cli/formatter/formatter.go b/cli/formatter/formatter.go index 8890b6ae2..3e233b2c2 100644 --- a/cli/formatter/formatter.go +++ b/cli/formatter/formatter.go @@ -34,19 +34,5 @@ func HumanDuration(timestamp int64) string { func CreateTable(columns []string) *tablewriter.Table { table := tablewriter.NewWriter(os.Stdout) table.SetHeader(columns) - - // Settings to create very bare tab padded table - table.SetAutoWrapText(false) - table.SetAutoFormatHeaders(true) - table.SetHeaderAlignment(tablewriter.ALIGN_LEFT) - table.SetAlignment(tablewriter.ALIGN_LEFT) - table.SetCenterSeparator("") - table.SetColumnSeparator("") - table.SetRowSeparator("") - table.SetHeaderLine(false) - table.SetBorder(false) - table.SetTablePadding("\t") // pad with tabs - table.SetNoWhiteSpace(true) - table.SetColWidth(1) return table }