diff --git a/CHANGES b/CHANGES index 29f383716..7c1ea7f55 100644 --- a/CHANGES +++ b/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) ========================= diff --git a/sphinx/latexwriter.py b/sphinx/latexwriter.py index 674842eb5..38016ab97 100644 --- a/sphinx/latexwriter.py +++ b/sphinx/latexwriter.py @@ -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('.')