forked from uniborg/uniborg
fix fix
This commit is contained in:
parent
f9b3c48a11
commit
5da937756b
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue