in reply to Align columns in a table

I am reluctant to recommend the perl function write for anything, but it may be exactly what you need (no module required at all).
Bill