From 2a9e03baabac5c2a476b30e5779cd7b5a8142076 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Wed, 12 Jul 2017 20:49:34 -0500 Subject: [PATCH] Tweak param signature for kbd role Represent ``options`` is dict and ``content`` is list-like. This is the same practice used in sphinx-doc/docutils. --- lib/github/commands/rest2html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/github/commands/rest2html b/lib/github/commands/rest2html index ed6507f5..0efea607 100755 --- a/lib/github/commands/rest2html +++ b/lib/github/commands/rest2html @@ -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('', '%s' % text, format='html')], []