mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #8365 (Capitalize not working)
This commit is contained in:
parent
2911dd1037
commit
163043de34
@ -80,7 +80,7 @@ def icu_case_sensitive_strcmp(collator, a, b):
|
||||
|
||||
def icu_capitalize(s):
|
||||
s = lower(s)
|
||||
return s.replace(s[0], upper(s[0]), 1)
|
||||
return s.replace(s[0], upper(s[0]), 1) if s else s
|
||||
|
||||
load_icu()
|
||||
load_collator()
|
||||
|
Loading…
x
Reference in New Issue
Block a user