Skip to content

Commit 17ee852

Browse files
committed
Printer out tags in alphabetical order
1 parent 9e8a387 commit 17ee852

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/find_tags_categories.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@ def collect_tags() -> tuple[Set[str], Set[str]]:
7070
def main():
7171
tags, categories = collect_tags()
7272

73-
print(f"\nExisting categories: {', '.join(sorted(categories))}", )
74-
print(f"\nExisting tags: {', '.join(sorted(tags))}", )
73+
print("\nExisting categories:")
74+
for cat in sorted(categories):
75+
print(f" {cat}")
76+
print(f"\nExisting tags:")
77+
for tag in sorted(tags):
78+
print(f" {tag}")
7579

7680

7781
if __name__ == "__main__":

0 commit comments

Comments
 (0)