Skip to content

Commit

Permalink
Tweak param signature for kbd role
Browse files Browse the repository at this point in the history
Represent ``options`` is dict and ``content`` is list-like.  This is the same practice used in sphinx-doc/docutils.
  • Loading branch information
tony committed Jul 13, 2017
1 parent 69ee5d6 commit 2a9e03b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/github/commands/rest2html
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ class GitHubHTMLTranslator(HTMLTranslator):
HTMLTranslator.depart_image(self, node)


def kbd(name, rawtext, text, lineno, inliner, options=None, content=None):

def kbd(name, rawtext, text, lineno, inliner, options={}, content=[]):
return [nodes.raw('', '<kbd>%s</kbd>' % text, format='html')], []


Expand Down

0 comments on commit 2a9e03b

Please sign in to comment.