]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Allow short form with text as argument.
authorGeorg Brandl <georg@python.org>
Thu, 22 Oct 2009 11:28:23 +0000 (11:28 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 22 Oct 2009 11:28:23 +0000 (11:28 +0000)
Doc/tools/sphinxext/pyspecific.py

index e639782d5fdf5e8a3769efb0bd35970f807c05d1..415310d969f80ae308633ea34b5a795cfbc2305f 100644 (file)
@@ -60,6 +60,9 @@ class ImplementationDetail(Directive):
         content = self.content
         add_text = nodes.strong('CPython implementation detail:',
                                 'CPython implementation detail:')
+        if self.arguments:
+            n, m = self.state.inline_text(self.arguments[0], self.lineno)
+            pnode.append(nodes.paragraph('', '', *(n + m)))
         self.state.nested_parse(content, self.content_offset, pnode)
         if pnode.children and isinstance(pnode[0], nodes.paragraph):
             pnode[0].insert(0, add_text)