Skip to content

Commit

Permalink
Further tweaks to section heading formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
markgw committed Oct 26, 2020
1 parent e6bd452 commit 3398aae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/python/pimlico/cli/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def print_section_tree(tree, mod_name_bullets, pipeline, depth=0, expand="all"):
# Apply consistent sorting
section_colors.sort()
print("{}{}".format(
mix_bg_colors("{} {}. {}".format("#"*depth, tree.number_str(), tree.name), section_colors),
mix_bg_colors("{} {}. {} ".format("#"*depth, tree.number_str(), tree.name), section_colors),
title_suffix
))

Expand Down
3 changes: 2 additions & 1 deletion src/python/pimlico/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2424,7 +2424,8 @@ def from_raw(raw_section_headings, number=None):
# Root node is unnumbered
number = []

subsections = [SectionHeadings.from_raw(subsection, number+[sub_num]) for sub_num, subsection in enumerate(raw_subsections)]
subsections = [SectionHeadings.from_raw(subsection, number+[sub_num])
for sub_num, subsection in enumerate(raw_subsections, start=1)]

return SectionHeadings(name, number, module_names, subsections)

Expand Down

0 comments on commit 3398aae

Please sign in to comment.