Make config-table display list defaults in list format

Brackets are cool.

Change-Id: I487bf7b4a05a646268aba61a3d997a6b51edd851
This commit is contained in:
Sean McGinnis 2018-05-02 09:54:15 -05:00
parent ac2a518b5e
commit 77ede7109b

View File

@ -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: