[Sass] Support --unix-newlines on Unix.

This commit is contained in:
Nathan Weizenbaum 2010-09-21 22:55:09 -07:00
parent 1f342cd496
commit 098c8c251f
3 changed files with 8 additions and 4 deletions

View File

@ -3,6 +3,10 @@
* Table of contents
{:toc}
## 3.0.19 (Unreleased)
* Allow the `--unix-newlines` flag to work on Unix, where it's a no-op.
## 3.0.18
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.18).

View File

@ -11,6 +11,8 @@
* Properly detect SCSS files when using `sass -c`.
* Allow the `--unix-newlines` flag to work on Unix, where it's a no-op.
## 3.0.18
[Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.18).

View File

@ -79,10 +79,8 @@ module Haml
@options[:trace] = true
end
if ::Haml::Util.windows?
opts.on('--unix-newlines', 'Use Unix-style newlines in written files.') do
@options[:unix_newlines] = true
end
opts.on('--unix-newlines', 'Use Unix-style newlines in written files.') do
@options[:unix_newlines] = true if ::Haml::Util.windows?
end
opts.on_tail("-?", "-h", "--help", "Show this message") do