Skip to content

Commit

Permalink
use non-absolute header, so css files do not change when checked in b…
Browse files Browse the repository at this point in the history
…y differen developers
  • Loading branch information
grosser committed Feb 11, 2010
1 parent 3b8d064 commit dac8bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/less/more.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dac8bfb

Please sign in to comment.