Introduce some padding into text grid output

Otherwise we were not leaving a gap when columns were 8n characters
wide.
This commit is contained in:
Justin Santa Barbara 2016-08-04 21:12:30 -04:00
parent d0fd8170cd
commit 64b2f9d387
1 changed files with 1 additions and 1 deletions

View File

@ -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 {