From: nagachika00@... Date: 2017-07-09T20:04:32+00:00 Subject: [ruby-core:81981] [Ruby trunk Bug#11464] ERB trimming doesn't trim carriage returns Issue #11464 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: DONE, 2.4: DONE ruby_2_4 r59300 merged revision(s) 58823. ---------------------------------------- Bug #11464: ERB trimming doesn't trim carriage returns https://bugs.ruby-lang.org/issues/11464#change-65709 * Author: Larivact (Martin Fischer) * Status: Closed * Priority: Normal * Assignee: k0kubun (Takashi Kokubun) * Target version: 2.5 * ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] * Backport: 2.2: REQUIRED, 2.3: DONE, 2.4: DONE ---------------------------------------- ERB trimming doesn't work if the .erb file was written on Windows (because Windows uses \r\n as line ending, whereas Linux uses only \n) The implementation apparently only trims \n ~~~ ruby erbCarriageReturnBug.rb ~~~ Expected output: ~~~