This commit is contained in:
Kovid Goyal 2007-12-27 23:51:39 +00:00
parent 0959c9714e
commit 12ae61a328

View File

@ -174,4 +174,4 @@ def sanitize_file_name(name):
Also remove path separators. ALl illegal characters are replaced by
underscores.
'''
return re.sub(r'[\|\~\:\?\\\/]|^-', '_', name.strip())
return re.sub(r'\s', ' ', re.sub(r'[\|\~\:\?\\\/]|^-', '_', name.strip()))