Commit eb265ab8 authored by Berker Peksag's avatar Berker Peksag

Issue #22150: Fix deprecated-removed directive in Sphinx 1.2.

parent 14ad5319
......@@ -180,7 +180,10 @@ class DeprecatedRemoved(Directive):
elif not SPHINX11:
para = nodes.paragraph('', '',
nodes.inline('', '%s.' % text, classes=['versionmodified']))
node.append(para)
if len(node):
node.insert(0, para)
else:
node.append(para)
env = self.state.document.settings.env
env.note_versionchange('deprecated', version[0], node, self.lineno)
return [node] + messages
......
......@@ -344,6 +344,7 @@ dl.glossary dt {
div.deprecated p, div.deprecated-removed p {
margin-bottom: 0;
margin-top: 0;
}
.system-message {
......
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