Kaydet (Commit) 6c475815 authored tarafından Georg Brandl's avatar Georg Brandl

The default reST role `foo` can now be used in NEWS to refer to Python objects.…

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.
üst 24372915
......@@ -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 []
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment