summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-12 22:38:54 +0200
committerGeorg Brandl <georg@python.org>2013-10-12 22:38:54 +0200
commitfa885b7da4443f79a6273fc03bbaae2bcff0dd9b (patch)
treee9edcb9f276a15f53406b91e19842e3362d03bc7
parentb96e209056a37c4c5f092f59f22769985b6256a1 (diff)
downloadsphinx-fa885b7da4443f79a6273fc03bbaae2bcff0dd9b.tar.gz
Restore ``versionmodified`` CSS class for versionadded/changed and deprecated
directives.
-rw-r--r--CHANGES6
-rw-r--r--sphinx/directives/other.py6
2 files changed, 10 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 16d00308..ed4d8fa7 100644
--- a/CHANGES
+++ b/CHANGES
@@ -13,6 +13,12 @@ Incompatible changes
* Removed the ``sphinx.ext.refcounting`` extension -- it is very specific to
CPython and has no place in the main distribution.
+Bugs fixed
+----------
+
+* Restore ``versionmodified`` CSS class for versionadded/changed and deprecated
+ directives.
+
Release 1.2 beta3 (released Oct 3, 2013)
========================================
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py
index e8955d16..96b68357 100644
--- a/sphinx/directives/other.py
+++ b/sphinx/directives/other.py
@@ -208,9 +208,11 @@ class VersionChange(Directive):
content.line = node[0].line
content += node[0].children
node[0].replace_self(nodes.paragraph('', '', content))
- node[0].insert(0, nodes.inline('', '%s: ' % text))
+ node[0].insert(0, nodes.inline('', '%s: ' % text,
+ classes=['versionmodified']))
else:
- para = nodes.paragraph('', '', nodes.inline('', '%s.' % text))
+ para = nodes.paragraph('', '',
+ nodes.inline('', '%s.' % text, classes=['versionmodified']))
node.append(para)
env = self.state.document.settings.env
# XXX should record node.source as well