testcommon last column no longer has trailing spaces

This commit is contained in:
Sasha Koshka 2024-02-10 21:24:09 -05:00
parent 5026576878
commit 6bb61b294b

View File

@ -17,7 +17,7 @@ func LogColumnsStyle (test *testing.T, style string, columns ...any) {
for index := range columns { for index := range columns {
if index > 0 { formatString += " | " } if index > 0 { formatString += " | " }
if index == len(columns) { if index == len(columns) - 1 {
formatString += "%v" formatString += "%v"
} else { } else {
formatString += "%-80v" formatString += "%-80v"