summaryrefslogtreecommitdiff
path: root/doc/ext.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-21 14:29:39 +0000
committerGeorg Brandl <georg@python.org>2008-03-21 14:29:39 +0000
commit94a868db404bd120663ea428d56fadf7e85b7714 (patch)
tree16420514d60b89ac35ed57a276d979bbe151f042 /doc/ext.py
parent5f3df9ecd7eb55129f220e5557e47b0ef66cb158 (diff)
downloadsphinx-git-94a868db404bd120663ea428d56fadf7e85b7714.tar.gz
Fix directive parse_node function.
Diffstat (limited to 'doc/ext.py')
-rw-r--r--doc/ext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/ext.py b/doc/ext.py
index e5fa14291..ef499cd40 100644
--- a/doc/ext.py
+++ b/doc/ext.py
@@ -15,8 +15,8 @@ dir_sig_re = re.compile(r'\.\. ([^:]+)::(.*)$')
def parse_directive(env, sig, signode):
if not sig.startswith('.'):
- sig = '.. %s::' % sig
- signode += addnodes.desc_name(sig, sig)
+ dec_sig = '.. %s::' % sig
+ signode += addnodes.desc_name(dec_sig, dec_sig)
return sig
m = dir_sig_re.match(sig)
if not m: