mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
/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:
committed by
Max Goodman
parent
69e908fa62
commit
9d541ea0c9
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user