1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Warnings.

This commit is contained in:
Cedric Beust 2017-03-09 13:32:17 -08:00
parent 87c56d320e
commit de052ea7f2

View file

@ -150,9 +150,9 @@ class AsciiTable {
append("\n")
}
var lineLength = 0
rows.forEachIndexed { index, row ->
rows.forEachIndexed { _, row ->
val formattedRow = row.mapIndexed { i, s -> col(widths[i], s) }.joinToString(vb)
val line = vb + " " + formattedRow + " " + vb
val line = "$vb $formattedRow $vb"
result.append(line).append("\n")
lineLength = line.length
}