summaryrefslogtreecommitdiff
path: root/Mailman/htmlformat.py
diff options
context:
space:
mode:
authorklm1998-03-08 17:24:16 +0000
committerklm1998-03-08 17:24:16 +0000
commit78e423001878fe33fd5a452e6cd51e3a040b10ea (patch)
tree9bdf79e0065bf56df7011ffb4f959622dcc4914f /Mailman/htmlformat.py
parentb413faa154ee1da4e21af605de576f39882470ba (diff)
downloadmailman-78e423001878fe33fd5a452e6cd51e3a040b10ea.tar.gz
mailman-78e423001878fe33fd5a452e6cd51e3a040b10ea.tar.zst
mailman-78e423001878fe33fd5a452e6cd51e3a040b10ea.zip
Diffstat (limited to 'Mailman/htmlformat.py')
-rw-r--r--Mailman/htmlformat.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py
index e7b5051da..2a8b0d175 100644
--- a/Mailman/htmlformat.py
+++ b/Mailman/htmlformat.py
@@ -383,20 +383,15 @@ class RadioButtonArray:
self.horizontal = horizontal
def Format(self, indent=0):
- t = Table()
+ t = Table(cellspacing=5)
items = []
l = len(self.button_names)
for i in range(l):
- if i == l:
- pref = ""
- elif i == 0:
- pref = " "
- else: pref = "    "
if self.checked == i:
- items.append(pref + self.button_names[i])
+ items.append(self.button_names[i])
items.append(RadioButton(self.name, i, 1))
else:
- items.append(pref + self.button_names[i])
+ items.append(self.button_names[i])
items.append(RadioButton(self.name, i))
if self.horizontal:
t.AddRow(items)
@@ -411,7 +406,8 @@ class UnorderedList(Container):
output = '\n%s<ul>\n' % spaces
for item in self.items:
output = output + '%s<li>%s\n' % (spaces,
- HTMLFormatObject(item, indent + 2))
+ HTMLFormatObject(item,
+ indent + 2))
output = output + '%s</ul>\n' % spaces
return output