[ruby-core:81189] [Ruby trunk Bug#5339] ERB generates extra newlines on Windows

From: hsbt@...
Date: 2017-05-16 01:23:49 UTC
List: ruby-core #81189
Issue #5339 has been updated by hsbt (Hiroshi SHIBATA).

Assignee changed from seki (Masatoshi Seki) to k0kubun (Takashi Kokubun)
Target version set to 2.5

----------------------------------------
Bug #5339: ERB generates extra newlines on Windows
https://bugs.ruby-lang.org/issues/5339#change-64842

* Author: DNNX (Viktar Basharymau)
* Status: Assigned
* Priority: Normal
* Assignee: k0kubun (Takashi Kokubun)
* Target version: 2.5
* ruby -v: ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Steps to reproduce:

(1) Create files from this gist: https://gist.github.com/1226780.
(2) Run `ruby erbug.rb`.
(3) If you're on windows, you'll see something like

* 1

  * 2

    * 3
Otherwise, it will be like this:
* 1
  * 2
    * 3

This bug also affects `bundler` gem (see https://github.com/carlhuda/bundler/issues/1371).





-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread