[PATCH] Indented heredoc trims trailing '\n' characters
-------------------------------------------------------
Key: JRUBY-1255
URL: http://jira.codehaus.org/browse/JRUBY-1255
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Environment: revision 4073 , tested on Mac and Windows
Reporter: Dmitry Verkhovsky
Attachments: patch_4073.txt
test.rb :
str = <<-EOL
blah-blah
EOL
p str
>ruby test.rb
"blah-blah\n\n\n"
>jruby test.rb
"blah-blah\n"
^^^^ TWO MORE "\n"s ARE MISSING
--
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