Project

General

Profile

Bug #5339

ERB generates extra newlines on Windows

Added by DNNX (Viktar Basharymau) almost 9 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
[ruby-core:39625]

Description

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

Also available in: Atom PDF