[Python-checkins] r62780 - in doctools/trunk: CHANGES sphinx/latexwriter.py
georg.brandl
python-checkins at python.org
Tue May 6 23:53:22 CEST 2008
Author: georg.brandl
Date: Tue May 6 23:53:21 2008
New Revision: 62780
Log:
Fix the LaTeX output of description units with multiple signatures.
Modified:
doctools/trunk/CHANGES
doctools/trunk/sphinx/latexwriter.py
Modified: doctools/trunk/CHANGES
==============================================================================
--- doctools/trunk/CHANGES (original)
+++ doctools/trunk/CHANGES Tue May 6 23:53:21 2008
@@ -11,6 +11,11 @@
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)
=========================
Modified: doctools/trunk/sphinx/latexwriter.py
==============================================================================
--- doctools/trunk/sphinx/latexwriter.py (original)
+++ doctools/trunk/sphinx/latexwriter.py Tue May 6 23:53:21 2008
@@ -88,7 +88,6 @@
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 @@
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('.')
More information about the Python-checkins
mailing list