Gotcha. File an issue and I'll try to get to it soon.

On Thu, Jan 21, 2010 at 7:54 AM, Charles Roper
<[email protected]>wrote:

> On Jan 21, 11:01 am, Nathan Weizenbaum <[email protected]> wrote:
> > I think this is a Ruby thing... Haml always uses "\n" internally. If you
> can
> > figure out a way around that, I'd consider adding a command-line option
> for
> > it.
>
> You need to open the file for writing in binary mode, e.g., File.open
> ("data", "wb")
>
> From section 10.1.5 of The Ruby Way:
>
> "The chief difference between binary and text files on [Windows] is
> that in binary mode, the end-of-line is not translated into a single
> linefeed but is kept as a carriage return/linefeed pair."
>
> Or you could call the binmode method:
>
> http://railsapi.com/doc/ruby-v1.8/classes/IO.html#M000572
>
> Cheers,
> Charles
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to