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

6
Gopkg.lock generated
View file

@ -59,7 +59,7 @@
revision = "2ce16c963a8ac5bd6af851d4877e38701346983f" revision = "2ce16c963a8ac5bd6af851d4877e38701346983f"
[[projects]] [[projects]]
digest = "1:495dc25bbfe6025e945e3efe885801fc1aefc33d835cac453c0e36a35693d839" digest = "1:88e0bcc18d131d663b1d1c449e91207bcc008978eb3eee7ac4a12ef9a8c8924c"
name = "github.com/evilsocket/islazy" name = "github.com/evilsocket/islazy"
packages = [ packages = [
"data", "data",
@ -71,8 +71,8 @@
"zip", "zip",
] ]
pruneopts = "UT" pruneopts = "UT"
revision = "05aa0b30334a79a11bc2072179722d6de727490e" revision = "cbdab98bdf66f776cf87f90f51328c7b41348125"
version = "v1.9.2" version = "v1.9.3"
[[projects]] [[projects]]
branch = "master" branch = "master"

View file

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