format

fun format(alignedColumnsWidths: List<Int>, tableWidth: Int, columnSeparator: String = " ", lineSeparatorSymbol: Char = '_', thickLineSeparatorSymbol: Char = '='): List<String>

Format section to a list of strings, properly aligned with other sections.

Parameters

alignedColumnsWidths

required widths of all columns to be aligned with other sections of the table

columnSeparator

sequence of symbols to separate columns

lineSeparatorSymbol

symbol to use for line separator

thickLineSeparatorSymbol

symbol to use for thick line separator