Fix the LaTeX output of description units with multiple signatures.

This commit is contained in:
Georg Brandl 2008-05-06 21:53:21 +00:00
parent 0bcc9d4655
commit bf8ace9d2f
2 changed files with 8 additions and 2 deletions

View File

@ -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)
=========================

View File

@ -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('.')