Fixes #1143, spaces in filename links

This commit is contained in:
Norton Wang 2013-11-06 00:26:42 -05:00
commit c5178238d0

View file

@ -213,6 +213,10 @@ class Content(object):
os.path.join(self.relative_dir, path)
)
# spaces in filename
if path not in self._context['filenames'] and '%20' in path:
path = path.replace('%20', ' ')
if path in self._context['filenames']:
origin = '/'.join((siteurl,
self._context['filenames'][path].url))