On Tue, Aug 10, 2010 at 8:51 AM, David Ainley <wrinkliez / gmail.com> wrote:
> Hey guys.          
> looks like this http://pastebin.com/eeicUCqL which is okay, but it looks
> a little sloppy to me.  
> dynamically space themselves so that they look evenly spaced? ala
> http://pastebin.com/cRcG97sK ?     
> separate parts, and then print them via format?  箮
You've got a few options, depending on how sophisticated you want to
get.  Based on that small sample, it looks like the easiest thing to
do might be to replace runs of multiple spaces with a single tab.
Something like:

  str.gsub( /\s+/, "\t" )

Otherwise, you could definitely split it on spaces and print using
#printf and a carefully-crafted format string.

Ben