[Python-checkins] r75603 - python/trunk/Doc/tools/sphinxext/pyspecific.py

georg.brandl python-checkins at python.org
Thu Oct 22 13:28:23 CEST 2009


Author: georg.brandl
Date: Thu Oct 22 13:28:23 2009
New Revision: 75603

Log:
Allow short form with text as argument.

Modified:
   python/trunk/Doc/tools/sphinxext/pyspecific.py

Modified: python/trunk/Doc/tools/sphinxext/pyspecific.py
==============================================================================
--- python/trunk/Doc/tools/sphinxext/pyspecific.py	(original)
+++ python/trunk/Doc/tools/sphinxext/pyspecific.py	Thu Oct 22 13:28:23 2009
@@ -60,6 +60,9 @@
         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)


More information about the Python-checkins mailing list