put space before colon

This commit is contained in:
Thomas Vander Stichele
2013-07-29 12:29:06 +02:00
parent 30e717b36b
commit 430ee02a71
2 changed files with 9 additions and 3 deletions

View File

@@ -45,8 +45,9 @@ class PathFilter(object):
path = re.sub(r'[/\\]', '-', path, re.UNICODE)
def separators(path):
# replace separators with a hyphen
path = re.sub(r'[:\|]', '-', path, re.UNICODE)
# replace separators with a space-hyphen or hyphen
path = re.sub(r'[:]', ' -', path, re.UNICODE)
path = re.sub(r'[\|]', '-', path, re.UNICODE)
return path
# change all fancy single/double quotes to normal quotes