Closes #676: Respect custom function/method parameter separator strings.

This commit is contained in:
Georg Brandl 2011-05-15 12:24:50 +02:00
parent 4e85a6ed42
commit eaa43cafce
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,8 @@
Release 1.0.8 (in development)
==============================
* #676: Respect custom function/method parameter separator strings.
* #682: Fix JS incompatibility with jQuery >= 1.5.
* #693: Fix double encoding done when writing HTMLHelp .hhk files.

View File

@ -111,12 +111,13 @@ class HTMLTranslator(BaseTranslator):
def visit_desc_parameterlist(self, node):
self.body.append('<big>(</big>')
self.first_param = 1
self.param_separator = node.child_text_separator
def depart_desc_parameterlist(self, node):
self.body.append('<big>)</big>')
def visit_desc_parameter(self, node):
if not self.first_param:
self.body.append(', ')
self.body.append(self.param_separator)
else:
self.first_param = 0
if not node.hasattr('noemph'):