Commits

Georg Brandl  committed 5afc609

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

  • Participants
  • Parent commits dd303c7

Comments (0)

Files changed (2)

 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.

File sphinx/writers/html.py

     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'):