Before I go and reinvent the wheel, I want to check that somebody hasn't already come up with something for this.
I have a list of strings that I need to print out in table format. I get the data from tables that can have somewhat long strings of data in some of the cells.
If I were to try to base my column width based on the longest string, I could end up with huge column widths.
What I'm wondering is if there is something already out there that exists to append string data to another row that still lines up with the current row (basically treat it like a cell that enforces automatic padding)
Example
listObj = ['Pre-Condition:', 'Condition:', 'Output:',
'Button is OFF', '-', 'Speed is not on',
'Button Enabled is OFF', 'Enabled is ON',
'Speed is on', 'Button Active is ON', 'Active is OFF',
'Hold steady true north', 'Button States is HOLD',
'Button States is ACCELERATOR OVERRIDE AND Set stuff is on <Stuff here>',
'Pedal to the medal here guys']
The list above is originally a three by 5 table. So I want to print everything out in columns of three. Where I run into issues is the second to last string item in the list. There are many more like this, as this is a somewhat contrived example. Any help would be greatly appreciated. I've run into this issue before, so I wanted to ask, because I'm sure other people have had this issue as well.
Desired Result
Pre-Condition Condition Output
Button is OFF - Speed is not on
Button Enabled is OFF Active is OFF Speed is on
Button States is HOLD Button states is Pedal to the med
ACCELERATOR OVERRIDE here guys
AND Set stuff is on