mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix pretty-printing of C++ function arguments.
This commit is contained in:
parent
5072e74a46
commit
eecd8bff03
@ -322,9 +322,8 @@ class ArgumentDefExpr(DefExpr):
|
|||||||
return self.type.get_id()
|
return self.type.get_id()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return (self.type is not None and u'%s %s' % (self.type, self.name)
|
return (u'%s %s' % (self.type or u'', self.name or u'')).strip() + \
|
||||||
or unicode(self.name)) + (self.default is not None and
|
(self.default is not None and u'=%s' % self.default or u'')
|
||||||
u'=%s' % self.default or u'')
|
|
||||||
|
|
||||||
|
|
||||||
class NamedDefExpr(DefExpr):
|
class NamedDefExpr(DefExpr):
|
||||||
|
Loading…
Reference in New Issue
Block a user