From: larivact@... Date: 2015-08-19T10:14:46+00:00 Subject: [ruby-core:70458] [Ruby trunk - Bug #11464] [Open] ERB trimming doesn't trim carriage returns Issue #11464 has been reported by Martin Fischer. ---------------------------------------- Bug #11464: ERB trimming doesn't trim carriage returns https://bugs.ruby-lang.org/issues/11464 * Author: Martin Fischer * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- 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: ~~~ ~~~ Received output: ~~~ ~~~ Corresponding documentation: http://ruby-doc.org/stdlib-2.2.2/libdoc/erb/rdoc/ERB.html ---Files-------------------------------- erbCarriageReturnBug.rb (73 Bytes) example.erb (59 Bytes) -- https://bugs.ruby-lang.org/