diff options
| author | mailman | 1998-02-26 21:18:41 +0000 |
|---|---|---|
| committer | mailman | 1998-02-26 21:18:41 +0000 |
| commit | 3e565bb63cddef16d4e1fd16ef66bbfcd530ea53 (patch) | |
| tree | c59e70d5d6c4f005fb183139d6e5249d6916199d /Mailman/htmlformat.py | |
| parent | fc909f099615311db25e859e7f7e0310341d8b9b (diff) | |
| download | mailman-3e565bb63cddef16d4e1fd16ef66bbfcd530ea53.tar.gz mailman-3e565bb63cddef16d4e1fd16ef66bbfcd530ea53.tar.zst mailman-3e565bb63cddef16d4e1fd16ef66bbfcd530ea53.zip | |
Diffstat (limited to 'Mailman/htmlformat.py')
| -rw-r--r-- | Mailman/htmlformat.py | 20 |
1 files changed, 13 insertions, 7 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: |
