mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
parent
1240fededa
commit
515fb53b60
1
CHANGES
1
CHANGES
@ -22,6 +22,7 @@ Bugs fixed
|
|||||||
* #5022: latex: crashed with docutils package provided by Debian/Ubuntu
|
* #5022: latex: crashed with docutils package provided by Debian/Ubuntu
|
||||||
* #5009: latex: a label for table is vanished if table does not have a caption
|
* #5009: latex: a label for table is vanished if table does not have a caption
|
||||||
* #5048: crashed with numbered toctree
|
* #5048: crashed with numbered toctree
|
||||||
|
* #2410: C, render empty argument lists for macros.
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -147,7 +147,8 @@ class CObject(ObjectDescription):
|
|||||||
fullname = name
|
fullname = name
|
||||||
|
|
||||||
if not arglist:
|
if not arglist:
|
||||||
if self.objtype == 'function':
|
if self.objtype == 'function' or \
|
||||||
|
self.objtype == 'macro' and sig.rstrip().endswith('()'):
|
||||||
# for functions, add an empty parameter list
|
# for functions, add an empty parameter list
|
||||||
signode += addnodes.desc_parameterlist()
|
signode += addnodes.desc_parameterlist()
|
||||||
if const:
|
if const:
|
||||||
|
Loading…
Reference in New Issue
Block a user