summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormailman1998-02-26 21:18:41 +0000
committermailman1998-02-26 21:18:41 +0000
commit3e565bb63cddef16d4e1fd16ef66bbfcd530ea53 (patch)
treec59e70d5d6c4f005fb183139d6e5249d6916199d
parentfc909f099615311db25e859e7f7e0310341d8b9b (diff)
downloadmailman-3e565bb63cddef16d4e1fd16ef66bbfcd530ea53.tar.gz
mailman-3e565bb63cddef16d4e1fd16ef66bbfcd530ea53.tar.zst
mailman-3e565bb63cddef16d4e1fd16ef66bbfcd530ea53.zip
Get some space between the label/radio-button pairs.
-rw-r--r--Mailman/htmlformat.py20
-rw-r--r--modules/htmlformat.py20
2 files changed, 26 insertions, 14 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py
index 15d875a29..ca2b2228a 100644
--- a/Mailman/htmlformat.py
+++ b/Mailman/htmlformat.py
@@ -367,13 +367,19 @@ class RadioButtonArray:
def Format(self, indent=0):
t = Table()
items = []
- for i in range(len(self.button_names)):
- if self.checked == i:
- items.append(self.button_names[i])
- items.append(RadioButton(self.name, i, 1))
- else:
- items.append(self.button_names[i])
- items.append(RadioButton(self.name, i))
+ 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(RadioButton(self.name, i, 1))
+ else:
+ items.append(pref + self.button_names[i])
+ items.append(RadioButton(self.name, i))
if self.horizontal:
t.AddRow(items)
else:
diff --git a/modules/htmlformat.py b/modules/htmlformat.py
index 15d875a29..ca2b2228a 100644
--- a/modules/htmlformat.py
+++ b/modules/htmlformat.py
@@ -367,13 +367,19 @@ class RadioButtonArray:
def Format(self, indent=0):
t = Table()
items = []
- for i in range(len(self.button_names)):
- if self.checked == i:
- items.append(self.button_names[i])
- items.append(RadioButton(self.name, i, 1))
- else:
- items.append(self.button_names[i])
- items.append(RadioButton(self.name, i))
+ 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(RadioButton(self.name, i, 1))
+ else:
+ items.append(pref + self.button_names[i])
+ items.append(RadioButton(self.name, i))
if self.horizontal:
t.AddRow(items)
else: