Skip to content

Commit 0df02ff

Browse files
committed
Fix capitalize casing only affecting first word
1 parent 0fb8c26 commit 0df02ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@ def headerGet(type, header=None):
196196
def applyCasing(type, text):
197197
global catCasing, subCasing
198198
if type == "cat":
199-
if catCasing == "Capitalize": return text.capitalize()
199+
if catCasing == "Capitalize": return text.title()
200200
elif catCasing == "UPPER": return text.upper()
201201
elif catCasing == "lower": return text.lower()
202202
else: return text
203203
if type == "sub":
204-
if subCasing == "Capitalize": return text.capitalize()
204+
if subCasing == "Capitalize": return text.title()
205205
elif subCasing == "UPPER": return text.upper()
206206
elif subCasing == "lower": return text.lower()
207207
else: return text

0 commit comments

Comments
 (0)