Actions
Bug #11464
closedERB trimming doesn't trim carriage returns
ruby -v:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
Backport:
Description
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
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0