Commits

Tero Koskinen committed 7310dba

Use a custom parameter separator.

  • Participants
  • Parent commits 78a0fff

Comments (0)

Files changed (1)

File adadomain/sphinxcontrib/adadomain.py

         if not arglist:
             if self.needs_arglist():
                 # for functions and procedures, add an empty parameter list
-                signode += addnodes.desc_parameterlist()
+                new_node = addnodes.desc_parameterlist()
+                new_node.child_text_separator = '; '
+                signode += new_node
             if returntype:
                 signode += addnodes.desc_returns(returntype, returntype)
             return fullname
 
         signode += nodes.Text(' ')
 
-        signode += addnodes.desc_parameterlist()
+        new_node = addnodes.desc_parameterlist()
+        new_node.child_text_separator = '; '
+        signode += new_node
 
         stack = [signode[-1]]
         counters = [0, 0]
         if not arglist:
             if self.needs_arglist():
                 # for functions and procedures, add an empty parameter list
-                signode += addnodes.desc_parameterlist()
+                newnode = addnodes.desc_parameterlist()
+                newnode.child_text_separator = '; '
+                signode += newnode
 
         signode += nodes.Text(' ')
 
-        signode += addnodes.desc_parameterlist()
+        newnode = addnodes.desc_parameterlist()
+        newnode.child_text_separator = '; '
+        signode += newnode
 
         stack = [signode[-1]]
         counters = [0, 0]