berkesokhan / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
1 stars 0 forks source link

Heredoc loses text #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Fixed in source

Original comment by djl.rif...@googlemail.com on 23 Mar 2008 at 6:12