rtlpy.utils.tabular_format

rtlpy.utils.tabular_format(lines: list[str] | str) list[str]

Converts the provided lines or string to a tabularly formatted string. This is a string where the start of each word is aligned

Parameters:

lines (list[str] | str) – List of strings where each string is a line, or a string which contains the full unformatted table

Returns:

The tabularly formatted string. Each string does not have leading

or trailing whitespace or newline characters

Return type:

list[str]