From: "Mauricio Fernández" Date: 2003-02-06T21:51:37+09:00 Subject: Re: %, % revisited On Thu, Feb 06, 2003 at 08:45:16PM +0900, Dossy wrote: > o here document with trailing dash "<<-" strips leading tabs > > It seems that Ruby's here-doc doesn't implement this: > > irb(main):001:0> p <<-"EOT" > irb(main):002:0" this is > irb(main):003:0" a test > irb(main):004:0" EOT > "\tthis is\n\ta test\n" > nil > > I'm generating the tabs using ^V^I in irb ... at least Ruby parsed it as > a here-doc, even if it didn't strip the tabs ... In Ruby <<-EOF means that EOF can be indented. puts <