diff options
author | Georg Brandl <georg@python.org> | 2012-10-01 17:27:05 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-10-01 17:27:05 (GMT) |
commit | 6c4758152fc32d1b78c3caa83eca4e1f5b470c84 (patch) | |
tree | c1f3d26803edc627547712343d29fde5d9b08415 /Doc/tools | |
parent | 243729151e3b49c9b7dfff741ee173c52aba63a0 (diff) | |
download | cpython-6c4758152fc32d1b78c3caa83eca4e1f5b470c84.zip cpython-6c4758152fc32d1b78c3caa83eca4e1f5b470c84.tar.gz cpython-6c4758152fc32d1b78c3caa83eca4e1f5b470c84.tar.bz2 |
The default reST role `foo` can now be used in NEWS to refer to Python objects. Use it for a fraction of the current NEWS file.
Diffstat (limited to 'Doc/tools')
-rw-r--r-- | Doc/tools/sphinxext/pyspecific.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/sphinxext/pyspecific.py b/Doc/tools/sphinxext/pyspecific.py index 1808e28..d4f17d8 100644 --- a/Doc/tools/sphinxext/pyspecific.py +++ b/Doc/tools/sphinxext/pyspecific.py @@ -181,7 +181,7 @@ class MiscNews(Directive): content) content = whatsnew_re.sub(r'\1', content) # remove first 3 lines as they are the main heading - lines = content.splitlines()[3:] + lines = ['.. default-role:: obj', ''] + content.splitlines()[3:] self.state_machine.insert_input(lines, fname) return [] |