From 12393a4b47f05fbf384ab7bb3bd7afa2fcf0b930 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 4 Nov 2014 08:44:39 -0500 Subject: [PATCH] subcategories are now Title case and _ gets changed to a space --- hacking/module_formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py index 03b8827d485..73729da4d6a 100755 --- a/hacking/module_formatter.py +++ b/hacking/module_formatter.py @@ -372,7 +372,7 @@ def process_category(category, categories, options, env, template, outputname): sections.sort() for section in sections: - category_file.write("%s\n%s\n\n" % (section,'-' * len(section))) + category_file.write("%s\n%s\n\n" % (section.replace("_"," ").title(),'-' * len(section))) category_file.write(".. toctree:: :maxdepth: 1\n\n") section_modules = module_map[section].keys()