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:
Florian Festi 2019-09-08 23:22:54 +02:00
parent ecbb159c90
commit df331cd1f3
1 changed files with 2 additions and 2 deletions

View File

@ -66,9 +66,9 @@ class Boxes2INX:
e) for e in a.choices) + ' </param>\n')
else:
if isinstance(a.type, boxes.BoolArg):
t = "boolean"
t = '"boolean"'
elif a.type is boxes.argparseSections:
t = "string"
t = '"string"'
else:
t = { int : '"int"',
float : '"float" precision="2"',