mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
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.
This commit is contained in:
parent
243729151e
commit
6c4758152f
2 changed files with 201 additions and 206 deletions
|
|
@ -181,7 +181,7 @@ def run(self):
|
|||
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 []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue