summaryrefslogtreecommitdiff
path: root/sphinx/directives/other.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/directives/other.py')
-rw-r--r--sphinx/directives/other.py6
1 files changed, 4 insertions, 2 deletions
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