mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #676: Respect custom function/method parameter separator strings.
This commit is contained in:
parent
4e85a6ed42
commit
eaa43cafce
2
CHANGES
2
CHANGES
@ -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.
|
||||
|
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user