From: Gennady Date: 2004-04-22T03:31:55+09:00 Subject: Re: printf / indent Its Me wrote: > How can I control starting (left) indentation for printf? Pickaxe did not > yield an answer. Or do I have to loop putting out spaces with > IO#putc " "? > > Thanks! > > > I would do indent = 3 message = "Hello, world" printf "%#{indent}s%s\n", "", message or indent = 3 message = "Hello, world" printf "#{' '*indent}%s", message Gennady.