Make an effort to handle spaces in filenames in a way that url_for can handle.
This commit is contained in:
parent
dcd760d4f8
commit
268538f926
4 changed files with 4 additions and 3 deletions
|
@ -119,7 +119,7 @@ module Middleman::Cli
|
|||
# @return [String] The full path of the file that was written
|
||||
def render_to_file(resource)
|
||||
build_dir = self.class.shared_instance.config[:build_dir]
|
||||
output_file = File.join(build_dir, resource.destination_path)
|
||||
output_file = File.join(build_dir, resource.destination_path.gsub('%20', ' '))
|
||||
|
||||
if resource.binary?
|
||||
if !File.exists?(output_file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue