A production-quality perl script for automatically aligning columns can be found at align: text column alignment filter, written by Steve Kinzler.
Although the title is text column ..., it right-adjusts if a field is numeric. There are command-line over-ride options for adjustment direction, along with numerous other features. I find it to be a very useful code ... cheers, drl