summaryrefslogtreecommitdiff
path: root/modules/htmlformat.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/htmlformat.py')
-rw-r--r--modules/htmlformat.py20
1 files changed, 13 insertions, 7 deletions
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: