From: Simon Strandgaard Date: 2004-03-31T05:19:23+09:00 Subject: Re: proposal - delayed intropolation in heredoc On Tue, 30 Mar 2004 21:58:06 +0900, YANAGAWA Kazuhisa wrote: > In Message-Id: > Simon Strandgaard writes: > >> Space isn't preserved.. I think you have misunderstood my proposal ;-) > > This particular case, you can use sprintf or String#%, can't you? > > > ruby < str = < string > %s > string > END > puts str%" inserted" > EOS > string > inserted > string Bommer.. Yes '%' does the trick. Silly me. I have been using this many times before, but without realizing its potential. Thanks Yanagawa, this is awesome ;-) -- Simon Strandgaard