jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-1255

[PATCH] Indented heredoc trims trailing '\n' characters

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: JRuby 1.0.1, JRuby 1.1b1
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Environment:
    revision 4073 , tested on Mac and Windows
  • Testcase included:
    yes
  • Patch Submitted:
    Yes

Description

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    patch_4073.txt
    01/Aug/07 9:40 AM
    1 kB
    Dmitry Verkhovsky

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Thomas E Enebo added a comment - 08/Aug/07 7:49 PM

Fixed in commit 4131 (patch by Dmitry Verkhovsky)

Show
Thomas E Enebo added a comment - 08/Aug/07 7:49 PM Fixed in commit 4131 (patch by Dmitry Verkhovsky)
Hide
Permalink
Nick Sieger added a comment - 16/Aug/07 11:37 AM

Re-opening until the patch lands in the 1.0 branch

Show
Nick Sieger added a comment - 16/Aug/07 11:37 AM Re-opening until the patch lands in the 1.0 branch

People

  • Assignee:
    Nick Sieger
    Reporter:
    Dmitry Verkhovsky
Vote (0)
Watch (1)

Dates

  • Created:
    01/Aug/07 9:40 AM
    Updated:
    22/Dec/07 6:28 AM
    Resolved:
    22/Aug/07 12:38 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.