From 3e565bb63cddef16d4e1fd16ef66bbfcd530ea53 Mon Sep 17 00:00:00 2001 From: mailman Date: Thu, 26 Feb 1998 21:18:41 +0000 Subject: Get some space between the label/radio-button pairs. --- Mailman/htmlformat.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'Mailman') 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: -- cgit v1.2.3-70-g09d2