Commits

Georg Brandl committed 00d7f27

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

  • Participants
  • Parent commits d71dfe8

Comments (0)

Files changed (2)

 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
   name contains non-ASCII characters.
 

sphinx/writers/html.py

         self.body.append('<span class="optional">]</span>')
 
     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):
         self.body.append('</em>')
 
         attrs = {}
         if node.hasattr('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):
         self.body.append('</abbr>')