Issue #5339 has been reported by Viktar Basharymau.

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

Author: Viktar Basharymau
Status: Open
Priority: Normal
Assignee: 
Category: 
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://redmine.ruby-lang.org