Heredocs ending in non-curly expansion do not include final newline
-------------------------------------------------------------------
Key: JRUBY-1317
URL: http://jira.codehaus.org/browse/JRUBY-1317
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.0.1
Reporter: Thomas E Enebo
Assignee: Thomas E Enebo
Fix For: JRuby 1.0.2, JRuby 1.1.0
{noformat}
value = "some value"
value.sub!(/\A(\S*)(.*?)(\S*)\Z/m) do |m|
<<'EOT'
#$1 other #$3
EOT
end
{noformat}
This should produce
{noformat}
some other value\n
{noformat}
but it does not contain the newline value.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email