corda / com.r3.corda.networkmanage.common.utils / toTableFormat

toTableFormat

fun toTableFormat(columnHeaders: List<String>, rowValues: List<List<String>>, headerSeparator: Boolean = false): List<String>

Used to display nicely formatted tables. Takes a set of columnHeaders and rowValues and returns the list of padded row strings, with correct spacing, that can be printed to console.