#225: Don't add whitespace in generated HTML after inline tags.

This commit is contained in:
Georg Brandl 2009-08-06 22:32:14 +02:00
parent ea5b0088fa
commit 13ced8d606
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
Release 0.6.3 (in development) Release 0.6.3 (in development)
============================== ==============================
* #225: Don't add whitespace in generated HTML after inline tags.
* #227: Make ``literalinclude`` work when the document's path * #227: Make ``literalinclude`` work when the document's path
name contains non-ASCII characters. name contains non-ASCII characters.

View File

@ -123,7 +123,7 @@ class HTMLTranslator(BaseTranslator):
self.body.append('<span class="optional">]</span>') self.body.append('<span class="optional">]</span>')
def visit_desc_annotation(self, node): def visit_desc_annotation(self, node):
self.body.append(self.starttag(node, 'em', CLASS='property')) self.body.append(self.starttag(node, 'em', '', CLASS='property'))
def depart_desc_annotation(self, node): def depart_desc_annotation(self, node):
self.body.append('</em>') self.body.append('</em>')
@ -457,7 +457,7 @@ class HTMLTranslator(BaseTranslator):
attrs = {} attrs = {}
if node.hasattr('explanation'): if node.hasattr('explanation'):
attrs['title'] = node['explanation'] attrs['title'] = node['explanation']
self.body.append(self.starttag(node, 'abbr', **attrs)) self.body.append(self.starttag(node, 'abbr', '', **attrs))
def depart_abbreviation(self, node): def depart_abbreviation(self, node):
self.body.append('</abbr>') self.body.append('</abbr>')