summaryrefslogtreecommitdiffstats
path: root/Doc/tools/sphinxext
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-10-22 11:28:23 (GMT)
committerGeorg Brandl <georg@python.org>2009-10-22 11:28:23 (GMT)
commitf5f7c66a012bcd407fa15022ffb2cdc9b86d2002 (patch)
treed05444a809a17061d09e57158a52712567a7f3f1 /Doc/tools/sphinxext
parentd032912ac15115a3d6093741970c76cff26ebfbf (diff)
downloadcpython-f5f7c66a012bcd407fa15022ffb2cdc9b86d2002.zip
cpython-f5f7c66a012bcd407fa15022ffb2cdc9b86d2002.tar.gz
cpython-f5f7c66a012bcd407fa15022ffb2cdc9b86d2002.tar.bz2
Allow short form with text as argument.
Diffstat (limited to 'Doc/tools/sphinxext')
-rw-r--r--Doc/tools/sphinxext/pyspecific.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/tools/sphinxext/pyspecific.py b/Doc/tools/sphinxext/pyspecific.py
index e639782..415310d 100644
--- a/Doc/tools/sphinxext/pyspecific.py
+++ b/Doc/tools/sphinxext/pyspecific.py
@@ -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)