formatTable

fun formatTable(sections: List<Section>, columnSeparator: String = " ", lineSeparatorSymbol: Char = '_', thickLineSeparatorSymbol: Char = '='): List<String>

Pretty print table from multiple sections. Each section consist of multiple rows, each row may consist of multiple lines. Sections may or may not have columns.

See also

Parameters

sections

list of sections to print

columnSeparator

sequence of symbols to separate columns

lineSeparatorSymbol

character that will be used to produce a string to separate rows.

thickLineSeparatorSymbol

character that will be used to produce a string to separate sections.