Make config-table display list defaults in list format
Brackets are cool. Change-Id: I487bf7b4a05a646268aba61a3d997a6b51edd851
This commit is contained in:
parent
ac2a518b5e
commit
77ede7109b
@ -59,7 +59,7 @@ class ConfigTableDirective(rst.Directive):
|
||||
return opt.sample_default
|
||||
|
||||
if type(opt.default) == list:
|
||||
return ', '.join(str(item) for item in opt.default)
|
||||
return "[%s]" % ', '.join(str(item) for item in opt.default)
|
||||
|
||||
result = str(opt.default)
|
||||
if not result:
|
||||
|
Loading…
Reference in New Issue
Block a user