mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C++, fix spacing issue in east-const notation
This commit is contained in:
parent
86ef8521df
commit
224a3435b9
@ -2062,12 +2062,15 @@ class ASTDeclSpecs(ASTBase):
|
||||
if self.trailingTypeSpec:
|
||||
if addSpace:
|
||||
signode += nodes.Text(' ')
|
||||
numChildren = len(signode)
|
||||
self.trailingTypeSpec.describe_signature(signode, mode, env,
|
||||
symbol=symbol)
|
||||
numChildren = len(signode)
|
||||
self.rightSpecs.describe_signature(signode)
|
||||
if len(signode) != numChildren:
|
||||
signode += nodes.Text(' ')
|
||||
addSpace = len(signode) != numChildren
|
||||
|
||||
if len(str(self.rightSpecs)) > 0:
|
||||
if addSpace:
|
||||
signode += nodes.Text(' ')
|
||||
self.rightSpecs.describe_signature(signode)
|
||||
|
||||
|
||||
# Declarator
|
||||
|
Loading…
Reference in New Issue
Block a user