mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-24 22:27:52 -05:00
C, style decl specifiers as intented
This commit is contained in:
1 parent
bb2f1baa1b
commit
04efdfa917
2 files changed
+2
-5
No files matched your search
+1
-4
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user