With heredocs using the single tick form, only one lines gets captured.
---------------- What steps will reproduce the problem?
s1 = <<HERE
One #{1 + 0}
Two #{1 + 1}
Three #{1 + 2}
HERE
puts s1
s2 = <<"HERE"
One #{1 + 0}
Two #{1 + 1}
Three #{1 + 2}
HERE
puts s2
s3 = <<'HERE'
One #{1 + 0}
Two #{1 + 1}
Three #{1 + 2}
HERE
puts s3
---------------- Expected:
One 1
Two 2
Three 3
One 1
Two 2
Three 3
One #{1 + 0}
Two #{1 + 1}
Three #{1 + 2}
---------------- Actual:
One 1
Two 2
Three 3
One 1
Two 2
Three 3
One #{1 + 0}
** Note: We only get the first line is s3 shown.
What version of the product are you using? On what operating system?
"Fresh svn get on 7th Jan 2008"
Please provide any additional information below.
Same using ruby.exe and rubycompiler
Original issue reported on code.google.com by djl.rif...@googlemail.com on 7 Jan 2008 at 7:10
Original issue reported on code.google.com by
djl.rif...@googlemail.com
on 7 Jan 2008 at 7:10