winton/stasis — Issue #37: ERB with Windows EOL characters --> blank lines
Author: MortyEU
Created: 2012-02-14 02:37:53+00:00
State: open

Seen with Stasis 0.1.16 on Windows 7 64-Bit, Ruby 1.9.3-p0, latest Gem's as published at the time of report.

When using ERB layouts with Windows-style end-of-line (EOL) characters (i.e. `CRLF`) , the resulting output file has a double newline after each EOL. When using Unix-style or Mac-style EOL all is fine.

As an example, using an ERB template looking like this:

```html

Test

<%= yield %>

```

I get an output file looking like this:

```html

Test

Header 1

This is a paragraph.

```

The character sequence at the end of each output line is: `CRCRLF`