Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6c47581

Browse files
committed
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.
1 parent 2437291 commit 6c47581

2 files changed

Lines changed: 201 additions & 206 deletions

File tree

Doc/tools/sphinxext/pyspecific.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def run(self):
181181
content)
182182
content = whatsnew_re.sub(r'\1', content)
183183
# remove first 3 lines as they are the main heading
184-
lines = content.splitlines()[3:]
184+
lines = ['.. default-role:: obj', ''] + content.splitlines()[3:]
185185
self.state_machine.insert_input(lines, fname)
186186
return []
187187

0 commit comments

Comments
 (0)