This commit is contained in:
udf 2018-11-01 23:24:17 +02:00
parent f9b3c48a11
commit 5da937756b
Signed by untrusted user: kate
GPG Key ID: E40724BAD73AF77B
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ def fix_title(s):
token = m.group(1) token = m.group(1)
if token.lower() == 'and': if token.lower() == 'and':
token = '&' token = '&'
return token.capitalize() + (' ' if m.group(2) else '') return token[0].upper() + token[1:] + (' ' if m.group(2) else '')
return re.sub(r'(\S+)(\s+)?', replace, s) return re.sub(r'(\S+)(\s+)?', replace, s)