From 7cd2844079b4fd0ccda32eac2a33c1266557fadb Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 17 Nov 2003 20:11:47 +0000 Subject: [PATCH] Cleaned up commands.html a little bit using some suggestions from ddipaolo --- tools/generate-plugin-documentation.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/generate-plugin-documentation.py b/tools/generate-plugin-documentation.py index 4a5461b6c..69deb9b2e 100755 --- a/tools/generate-plugin-documentation.py +++ b/tools/generate-plugin-documentation.py @@ -178,11 +178,19 @@ def makeCommandsIndex():

Supybot Commands Index

- Command (Plugins)

+ Command (Plugins)
""")) commands = [c for c in commandDict.iterkeys()] commands.sort() + alphas = [] for command in commands: + char = command[0] + if char in alphas: + pass + else: + alphas.append(char) + fd.write('

%s'\ + '

\n' % (char, char.capitalize())) plugins = commandDict[command] plugins.sort() fd.write('%s (%s)
\n' % (command,