diff --git a/src/libprs500/__init__.py b/src/libprs500/__init__.py index ebb6ccceaf..f43a54a403 100644 --- a/src/libprs500/__init__.py +++ b/src/libprs500/__init__.py @@ -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()) \ No newline at end of file + return re.sub(r'\s', ' ', re.sub(r'[\|\~\:\?\\\/]|^-', '_', name.strip())) \ No newline at end of file