From 2d2899070f131ee256259b3d64c8526f0a2edb97 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Sat, 20 Oct 2001 20:56:36 +0000 Subject: option_help(): If there is no elaboration, don't display the description three times (two should be enough ). --- Mailman/Cgi/admin.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index e160bc82d..3e2720bd0 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -321,9 +321,6 @@ def option_help(mlist, varhelp): # Get the details about the variable varname, kind, params, dependancies, description, elaboration = \ get_item_characteristics(item) - if elaboration is None: - elaboration = description - # # Set up the document realname = mlist.real_name legend = _("""%(realname)s Mailing list Configuration Help @@ -336,7 +333,8 @@ def option_help(mlist, varhelp): doc.SetTitle(_("Mailman %(varname)s List Option Help")) doc.AddItem(header) doc.AddItem("%s (%s): %s

" % (varname, category, description)) - doc.AddItem("%s

" % elaboration) + if elaboration: + doc.AddItem("%s

" % elaboration) if subcat: url = '%s/%s/%s' % (mlist.GetScriptURL('admin'), category, subcat) -- cgit v1.3.1