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 self.trailingTypeSpec:
|
||||||
if addSpace:
|
if addSpace:
|
||||||
signode += nodes.Text(' ')
|
signode += nodes.Text(' ')
|
||||||
|
numChildren = len(signode)
|
||||||
self.trailingTypeSpec.describe_signature(signode, mode, env,
|
self.trailingTypeSpec.describe_signature(signode, mode, env,
|
||||||
symbol=symbol)
|
symbol=symbol)
|
||||||
numChildren = len(signode)
|
addSpace = len(signode) != numChildren
|
||||||
self.rightSpecs.describe_signature(signode)
|
|
||||||
if len(signode) != numChildren:
|
if len(str(self.rightSpecs)) > 0:
|
||||||
signode += nodes.Text(' ')
|
if addSpace:
|
||||||
|
signode += nodes.Text(' ')
|
||||||
|
self.rightSpecs.describe_signature(signode)
|
||||||
|
|
||||||
|
|
||||||
# Declarator
|
# Declarator
|
||||||
|
Loading…
Reference in New Issue
Block a user