Issue #5339 has been updated by Koichi Sasada.

Category set to lib
Status changed from Open to Assigned
Assignee set to Masatoshi Seki


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

Author: Viktar Basharymau
Status: Assigned
Priority: Normal
Assignee: Masatoshi Seki
Category: lib
Target version: 
ruby -v: ruby 1.9.2p290 (2011-07-09) [i386-mingw32]


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).




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