From cabfab3d0c974b68a12e5854822fcf2b243cb1b0 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 14 Oct 2003 12:55:08 +0000 Subject: [PATCH] Only swap the background color of the td if we know for sure that we are going to be displaying one. Fixes the problem of blocks of tds that are all the same color. --- tools/generate-plugin-documentation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/generate-plugin-documentation.py b/tools/generate-plugin-documentation.py index 25f0a2293..da902bf23 100755 --- a/tools/generate-plugin-documentation.py +++ b/tools/generate-plugin-documentation.py @@ -79,7 +79,6 @@ def makePluginDocumentation(filename): Detailed Help """) % (pluginName, cgi.escape(module.__doc__ or ""))) for attr in dir(plugin): - trClass = trClasses[trClass] if plugin.isCommand(attr): method = getattr(plugin, attr) if hasattr(method, '__doc__'): @@ -92,6 +91,7 @@ def makePluginDocumentation(filename): morehelp = ' '.join(doclines) help = cgi.escape(help) morehelp = cgi.escape(morehelp) + trClass = trClasses[trClass] fd.write(textwrap.dedent(""" %s%s%s