Permalink
Browse files

Apply fix behing PR #149 to PR #158.

  • Loading branch information...
1 parent 88490cd commit 354f67f81729c5e2fe6232f528179b91ed1bcf0f @goncalossilva goncalossilva committed Mar 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/showoff.rb
View
@@ -473,7 +473,7 @@ def pdf(static=true)
# Process inline css and js for included images
# The css uses relative paths for images and we prepend the file url
- html.gsub!(/url\(([^\/].*?)\)/) do |s|
+ html.gsub!(/url\([\"\']?(.*?)[\"\']?\)/) do |s|
"url(file://#{settings.pres_dir}/#{$1})"
end

0 comments on commit 354f67f

Please sign in to comment.