Fix Inkscape inx files with BoolArg and argparseSections parameters
This was broken by 603c0a789e
by adding quotes
to some cases but not all.
Resolves: #171
This commit is contained in:
parent
ecbb159c90
commit
df331cd1f3
|
@ -66,9 +66,9 @@ class Boxes2INX:
|
||||||
e) for e in a.choices) + ' </param>\n')
|
e) for e in a.choices) + ' </param>\n')
|
||||||
else:
|
else:
|
||||||
if isinstance(a.type, boxes.BoolArg):
|
if isinstance(a.type, boxes.BoolArg):
|
||||||
t = "boolean"
|
t = '"boolean"'
|
||||||
elif a.type is boxes.argparseSections:
|
elif a.type is boxes.argparseSections:
|
||||||
t = "string"
|
t = '"string"'
|
||||||
else:
|
else:
|
||||||
t = { int : '"int"',
|
t = { int : '"int"',
|
||||||
float : '"float" precision="2"',
|
float : '"float" precision="2"',
|
||||||
|
|
Loading…
Reference in New Issue