From 1c76dac464a5bf0ca4a81afbc42573abc2bfea23 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 6 Sep 2024 12:41:50 +0200 Subject: [PATCH] Use title instead of capitalized for the categories This produces a better result for categories like "Image Editor". It makes sure all the first words get capitalized. --- make_icons_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_icons_index.py b/make_icons_index.py index 9834840..9a30be4 100755 --- a/make_icons_index.py +++ b/make_icons_index.py @@ -26,7 +26,7 @@ def parse_comment_line(input_string): # Remove /* and */ stripped_string = input_string[2:-3].strip() # Capitalize the string - capitalized_string = stripped_string.capitalize() + capitalized_string = stripped_string.title() return capitalized_string -- 2.30.2