mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Warnings.
This commit is contained in:
parent
87c56d320e
commit
de052ea7f2
1 changed files with 2 additions and 2 deletions
|
@ -150,9 +150,9 @@ class AsciiTable {
|
||||||
append("\n")
|
append("\n")
|
||||||
}
|
}
|
||||||
var lineLength = 0
|
var lineLength = 0
|
||||||
rows.forEachIndexed { index, row ->
|
rows.forEachIndexed { _, row ->
|
||||||
val formattedRow = row.mapIndexed { i, s -> col(widths[i], s) }.joinToString(vb)
|
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")
|
result.append(line).append("\n")
|
||||||
lineLength = line.length
|
lineLength = line.length
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue