Permalink
Browse files

Compression only removes newlines. Doesn't touch spaces. Closes #6

  • Loading branch information...
1 parent 653c22e commit b22fcd5b16f109b7bd657e537806d41f6cc63bd3 @augustl augustl committed Sep 18, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/more.rb
  2. +1 −1 test/more_test.rb
View
2 lib/more.rb
@@ -110,7 +110,7 @@ def generate(path_as_array)
source = pathname_from_array(path_as_array)
engine = File.open(source) {|f| Less::Engine.new(f) }
css = engine.to_css
- css.delete!(" \n") if self.compression?
+ css.delete!("\n") if self.compression?
css
end
View
2 test/more_test.rb
@@ -69,7 +69,7 @@ def test_generate
Less::More.source_path = File.join(File.dirname(__FILE__), 'less_files')
Less::More.compression = true
- assert_equal ".allforms{font-size:110%;}body{color:#222222;}form{font-size:110%;color:#ffffff;}", Less::More.generate(["test"])
+ assert_equal ".allforms { font-size: 110%; }body { color: #222222; }form { font-size: 110%; color: #ffffff;}", Less::More.generate(["test"])
end
def test_pathname_from_array

0 comments on commit b22fcd5

Please sign in to comment.