diff --git a/scripts/boxes2inkscape b/scripts/boxes2inkscape
index 082807b..ad68206 100755
--- a/scripts/boxes2inkscape
+++ b/scripts/boxes2inkscape
@@ -60,13 +60,15 @@ class Boxes2INX:
(name, max((len(l) for l in val))+10, len(val)+1, a.default)
elif a.choices:
return (''' \n'''
- % (name, viewname, quoteattr(a.help or "")) +
+ % (name, viewname, quoteattr(a.help or viewname)) +
"".join(' - %s
\n' %
(e, ' selected="selected"' if e == a.default else "",
e) for e in a.choices) + ' \n')
else:
+ default = a.default
if isinstance(a.type, boxes.BoolArg):
t = '"boolean"'
+ default = str(a.default).lower()
elif a.type is boxes.argparseSections:
t = '"string"'
else:
@@ -74,7 +76,7 @@ class Boxes2INX:
float : '"float" precision="2"',
str : '"string"',
}.get(a.type, '"string"')
- return ''' %s\n''' % (name, t, viewname, quoteattr(a.help or ""), a.default)
+ return ''' %s\n''' % (name, t, viewname, quoteattr(a.help or viewname), default)
def generator2inx(self, name, box):
result = [ """