We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc5cc28 commit a48d801Copy full SHA for a48d801
docs/scripts/generate_ref_files.py
@@ -9,7 +9,6 @@
9
"""
10
11
from pathlib import Path
12
-from string import capwords
13
14
# ---- Paths -----------------------------------------------------------
15
@@ -38,7 +37,7 @@ def pretty_title(last_segment: str) -> str:
38
37
Handles underscores and hyphens; leaves camelCase as‑is except first‑letter cap.
39
40
cleaned = last_segment.replace("_", " ").replace("-", " ")
41
- return capwords(cleaned)
+ return cleaned.title()
42
43
44
# ---- Main ------------------------------------------------------------
0 commit comments