merge with 3.2

This commit is contained in:
Georg Brandl 2012-03-25 20:32:35 +02:00
commit 288b9bf1ea
4 changed files with 9 additions and 4 deletions

View file

@ -27,10 +27,10 @@ def new_visit_versionmodified(self, node):
self.body.append(self.starttag(node, 'p', CLASS=node['type']))
text = versionlabels[node['type']] % node['version']
if len(node):
text += ': '
text += ':'
else:
text += '.'
self.body.append('<span class="versionmodified">%s</span>' % text)
self.body.append('<span class="versionmodified">%s</span> ' % text)
from sphinx.writers.html import HTMLTranslator
from sphinx.locale import versionlabels