mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#225: Don't add whitespace in generated HTML after inline tags.
This commit is contained in:
parent
ea5b0088fa
commit
13ced8d606
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
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.
|
||||
|
||||
|
@ -123,7 +123,7 @@ class HTMLTranslator(BaseTranslator):
|
||||
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>')
|
||||
|
||||
@ -457,7 +457,7 @@ class HTMLTranslator(BaseTranslator):
|
||||
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>')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user