summaryrefslogtreecommitdiff
path: root/doc/tools
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-10-21 14:01:05 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-10-21 14:01:05 +0200
commit2e212a2cfd8bba3fd484cda03cfcad44edd78fb8 (patch)
tree0f7b0062b71e380e9e7bc6bdd306548dc886a03c /doc/tools
parent2cd044e89bcf04a58216802b32d3264749acd6d1 (diff)
makerst: Remove stray spaces in method signatures
Diffstat (limited to 'doc/tools')
-rw-r--r--doc/tools/makerst.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py
index 219b2485f7..dc015d781b 100644
--- a/doc/tools/makerst.py
+++ b/doc/tools/makerst.py
@@ -310,11 +310,11 @@ def make_method(
if declare or pp == None:
- s = ' **' + m.attrib['name'] + '** '
+ s = '**' + m.attrib['name'] + '** '
else:
s = ':ref:`' + m.attrib['name'] + '<class_' + cname + "_" + m.attrib['name'] + '>` '
- s += ' **(**'
+ s += '**(**'
argfound = False
for a in mdata['argidx']:
arg = mdata[a]
@@ -334,10 +334,6 @@ def make_method(
if 'default' in arg.attrib:
s += '=' + arg.attrib['default']
- argfound = True
-
- if argfound:
- s += ' '
s += ' **)**'
if 'qualifiers' in m.attrib: