2 Oct 07:49
[ruby-core:19106] Re: Indented Heredoc Whitespace Stripping
From: Martin Duerst <duerst <at> it.aoyama.ac.jp>
Subject: [ruby-core:19106] Re: Indented Heredoc Whitespace Stripping
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-10-02 05:53:53 GMT
Subject: [ruby-core:19106] Re: Indented Heredoc Whitespace Stripping
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-10-02 05:53:53 GMT
I didn't know this idea was around, but I would definitely appreciate it very much; code with here documents either is difficult to parse, or the data ends up with lots of useless (and potentially harmful) blanks. I only fear that this won't make the feature deadline (which was September 25th). Regards, Martin. At 05:25 08/10/02, James Gray wrote: >Wasn't there a plan to strip leading whitespace out of indented >heredocs in Ruby 1.9? It doesn't look that is being done: > >$ cat heredoc_whitespace.rb >def hi > <<-END_HI > Hi! > END_HI >end > >p hi >$ ruby_dev heredoc_whitespace.rb >"\t\tHi!\n" > >Am I missing something? > >James Edward Gray II > #-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University #-#-# http://www.sw.it.aoyama.ac.jp mailto:duerst <at> it.aoyama.ac.jp
RSS Feed