History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-1317
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Thomas E Enebo
Reporter: Thomas E Enebo
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

Heredocs ending in non-curly expansion do not include final newline

Created: 05/Sep/07 10:26 AM   Updated: 22/Dec/07 06:28 AM
Component/s: None
Affects Version/s: JRuby 1.0.1
Fix Version/s: JRuby 1.1b1, JRuby 1.0.2

Time Tracking:
Not Specified


 Description  « Hide
value = "some value"
value.sub!(/\A(\S*)(.*?)(\S*)\Z/m) do |m|
  <<'EOT'
#$1 other #$3
EOT
end

This should produce

some other value\n

but it does not contain the newline value.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Thomas E Enebo - 05/Sep/07 04:37 PM
Fixed in commit 4277 on trunk and 4278 on 1.0 branch