From: Bertram Scharpf Date: 2007-09-19T22:26:41+09:00 Subject: Re: Indenting strings - elegant alternatives? Hi, Am Mittwoch, 19. Sep 2007, 20:46:30 +0900 schrieb Xavier Noria: > Another solution is: > > s.gsub(/^/, ' ' * n) Or even s.gsub /^(?!$)/, " "*n Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de