Hello,

2011/10/3 "Martin J. Durst" <duerst / it.aoyama.ac.jp>:
> What we'd like to have is something like
>
> my_string = <<+HERE
>   doc
>   doc
>   doc
>   HERE
> -> "doc\ndoc\ndoc\n"


How about importing String#margin from Facets?

  my_string = <<-END.margin
    |doc
    |doc
    |doc
  END

  p my_string  #=> "doc\ndoc\ndoc"


http://rubyworks.github.com/facets/doc/api/core/String.html#method-i-margin

-- 
Yusuke Endoh <mame / tsg.ne.jp>