From: hsbt@... Date: 2017-05-16T01:23:10+00:00 Subject: [ruby-core:81186] [Ruby trunk Bug#11464] ERB trimming doesn't trim carriage returns Issue #11464 has been updated by hsbt (Hiroshi SHIBATA). Assignee changed from seki (Masatoshi Seki) to k0kubun (Takashi Kokubun) Target version set to 2.5 ---------------------------------------- Bug #11464: ERB trimming doesn't trim carriage returns https://bugs.ruby-lang.org/issues/11464#change-64839 * Author: Larivact (Martin Fischer) * Status: Assigned * 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.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-------------------------------- example.erb (59 Bytes) erbCarriageReturnBug.rb (73 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: