fix: updated islazy to v1.9.3 fixed a bug in the way tui.Table was rendered

This commit is contained in:
evilsocket 2019-01-31 16:39:35 +01:00
commit 8abaeeacee
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 5 additions and 5 deletions

View file

@ -63,12 +63,12 @@ func padded(s string, maxLen int, align alignment) string {
// data.
func Table(w io.Writer, columns []string, rows [][]string) {
for i, col := range columns {
columns[i] = fmt.Sprintf(" %s ", col)
columns[i] = fmt.Sprintf(" %s", col)
}
for i, row := range rows {
for j, cell := range row {
rows[i][j] = fmt.Sprintf(" %s ", cell)
rows[i][j] = fmt.Sprintf(" %s", cell)
}
}