Permalink
Browse files

use non-absolute header, so css files do not change when checked in b…

…y differen developers
  • Loading branch information...
1 parent 3b8d064 commit dac8bfb9a86f8ff10148879b0eb6f0a7efaaec3b @grosser grosser committed Feb 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/less/more.rb
View
@@ -140,7 +140,7 @@ def generate(path_as_array)
engine = File.open(source) {|f| Less::Engine.new(f) }
css = engine.to_css
css.delete!("\n") if self.compression?
- css = (HEADER % [source.to_s]) << css if self.header?
+ css = (HEADER % [source.to_s.sub(File.expand_path('.'), '')]) << css if self.header?
end
# make sure the appropriate cache directory exists
FileUtils.mkdir_p destination_dir

0 comments on commit dac8bfb

Please sign in to comment.