mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix the LaTeX output of description units with multiple signatures.
This commit is contained in:
parent
0bcc9d4655
commit
bf8ace9d2f
5
CHANGES
5
CHANGES
@ -11,6 +11,11 @@ New features added
|
||||
classes now that override the signature got via introspection from
|
||||
Python code.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Fix the LaTeX output of description units with multiple signatures.
|
||||
|
||||
|
||||
Release 0.3 (May 6, 2008)
|
||||
=========================
|
||||
|
@ -88,7 +88,6 @@ class Desc(object):
|
||||
self.ni = node['noindex']
|
||||
self.type = self.cls = self.name = self.params = ''
|
||||
self.count = 0
|
||||
self.name = ''
|
||||
|
||||
|
||||
class LaTeXTranslator(nodes.NodeVisitor):
|
||||
@ -294,7 +293,9 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
self.body.append("\\end{%s%s}\n" % (d.env, d.ni and 'ni' or ''))
|
||||
|
||||
def visit_desc_signature(self, node):
|
||||
pass
|
||||
d = self.descstack[-1]
|
||||
# reset these for every signature
|
||||
d.type = d.cls = d.name = d.params = ''
|
||||
def depart_desc_signature(self, node):
|
||||
d = self.descstack[-1]
|
||||
d.cls = d.cls.rstrip('.')
|
||||
|
Loading…
Reference in New Issue
Block a user