From 64b2f9d38703a1d7bf843cee484e95af1c3e5d51 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Thu, 4 Aug 2016 21:12:30 -0400 Subject: [PATCH] Introduce some padding into text grid output Otherwise we were not leaving a gap when columns were 8n characters wide. --- cmd/kops/format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kops/format.go b/cmd/kops/format.go index 65aa963d90..4f4ee2f7e1 100644 --- a/cmd/kops/format.go +++ b/cmd/kops/format.go @@ -129,7 +129,7 @@ func (t *Table) Render(items interface{}, out io.Writer, columnNames ...string) w := new(tabwriter.Writer) // Format in tab-separated columns with a tab stop of 8. - w.Init(out, 0, 8, 0, '\t', tabwriter.StripEscape) + w.Init(out, 0, 8, 1, '\t', tabwriter.StripEscape) writeHeader := true if writeHeader {