mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C, style decl specifiers as intented
This commit is contained in:
parent
bb2f1baa1b
commit
04efdfa917
@ -655,10 +655,7 @@ class ASTDeclSpecsSimple(ASTBase):
|
||||
def _add(modifiers: List[Node], text: str) -> None:
|
||||
if len(modifiers) > 0:
|
||||
modifiers.append(nodes.Text(' '))
|
||||
# TODO: should probably do
|
||||
# modifiers.append(addnodes.desc_annotation(text, text))
|
||||
# but for now emulate the old output:
|
||||
modifiers.append(nodes.Text(text))
|
||||
modifiers.append(addnodes.desc_annotation(text, text))
|
||||
|
||||
for attr in self.attrs:
|
||||
if len(modifiers) > 0:
|
||||
|
@ -4,7 +4,7 @@ test-domain-c
|
||||
directives
|
||||
----------
|
||||
|
||||
.. c:function:: int hello(char *name)
|
||||
.. c:function:: int hello(const char *name)
|
||||
|
||||
:rtype: int
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user