Inline fonts weren't being base64 encoded.

This commit is contained in:
Micah Geisel 2011-09-06 14:57:34 -07:00
parent 8ccdab41cc
commit bced277049

View File

@ -12,7 +12,7 @@ module Compass::SassExtensions::Functions::InlineImage
while args.size > 0 while args.size > 0
path = args.shift.value path = args.shift.value
real_path = File.join(Compass.configuration.fonts_path, path) real_path = File.join(Compass.configuration.fonts_path, path)
url = "url('data:#{compute_mime_type(path)};base64,#{data(real_path)}')" url = inline_image_string(data(real_path), compute_mime_type(path))
files << "#{url} format('#{args.shift}')" files << "#{url} format('#{args.shift}')"
end end
Sass::Script::String.new(files.join(", ")) Sass::Script::String.new(files.join(", "))