From 2e212a2cfd8bba3fd484cda03cfcad44edd78fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 21 Oct 2017 14:01:05 +0200 Subject: [PATCH] makerst: Remove stray spaces in method signatures --- doc/tools/makerst.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py index 219b2485f76..dc015d781b2 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'] + '` ' - 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: