mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-26 21:05:37 +02:00
Fix #254
This commit is contained in:
parent
0959c9714e
commit
12ae61a328
1 changed files with 1 additions and 1 deletions
|
|
@ -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()))
|
||||
Loading…
Reference in a new issue