1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] [sass-convert] Fix a few more syntax-setting bugs.

This commit is contained in:
Nathan Weizenbaum 2010-02-21 18:26:21 -08:00
parent b97bde7a62
commit b2d35243f5

View file

@ -569,7 +569,6 @@ END
'By default, this is inferred from the output filename.', 'By default, this is inferred from the output filename.',
'If there is none, defaults to sass.') do |name| 'If there is none, defaults to sass.') do |name|
@options[:to] = name.downcase.to_sym @options[:to] = name.downcase.to_sym
@options[:for_engine][:syntax] = @options[:to]
end end
opts.on('--old', 'Output the old-style ":prop val" property syntax.', opts.on('--old', 'Output the old-style ":prop val" property syntax.',
@ -611,6 +610,7 @@ END
@options[:from] ||= :css @options[:from] ||= :css
@options[:to] ||= :sass @options[:to] ||= :sass
@options[:for_engine][:syntax] = @options[:from]
out = out =
if @options[:from] == :css if @options[:from] == :css