[#70257] [Ruby trunk - Feature #11420] [Open] Introduce ID key table into MRI — ko1@...

Issue #11420 has been reported by Koichi Sasada.

11 messages 2015/08/06

[ruby-core:70458] [Ruby trunk - Bug #11464] [Open] ERB trimming doesn't trim carriage returns

From: larivact@...
Date: 2015-08-19 10:14:46 UTC
List: ruby-core #70458
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:

~~~
<ul>
        <li>cucumber</li>
        <li>cucumber</li>
        <li>cucumber</li>
</ul>
~~~

Received output:

~~~
<ul>

        <li>cucumber</li>

        <li>cucumber</li>

        <li>cucumber</li>

</ul>
~~~

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/

In This Thread

Prev Next