/dev/api: Make "one of" lists use <code>.

This increases consistency with the rest of the docs which put tokens in
<code> markers (which formats to a monospace font).
This commit is contained in:
Neil Williams
2013-09-20 22:47:31 -07:00
committed by Max Goodman
parent 69e908fa62
commit 9d541ea0c9

View File

@@ -1495,7 +1495,8 @@ class VMenu(Validator):
def param_docs(self):
return {
self.param[0]: 'one of (%s)' % ', '.join(self.nav.options),
self.param[0]: 'one of (%s)' % ', '.join("`%s`" % s
for s in self.nav.options),
}
@@ -1660,7 +1661,8 @@ class VOneOf(Validator):
def param_docs(self):
return {
self.param: 'one of (%s)' % ', '.join(self.options)
self.param: 'one of (%s)' % ', '.join("`%s`" % s
for s in self.options),
}
class VImageType(Validator):