aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-11-14 10:24:57 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-11-16 15:31:52 +0100
commitefecd58e8d152d7dc13b3a88d025332bf874abfa (patch)
tree3f8460c55c3fdb302f3ee44d0062b7c82012b67a
parenta2bff1c35c6d4c8c2b4f9aacef1c28c5049e9745 (diff)
downloadsparse-efecd58e8d152d7dc13b3a88d025332bf874abfa.tar.gz
doc: fix extracted autodoc when short description ends with a ?
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rwxr-xr-xDocumentation/sphinx/cdoc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/sphinx/cdoc.py b/Documentation/sphinx/cdoc.py
index 73c128cb..cca5ad28 100755
--- a/Documentation/sphinx/cdoc.py
+++ b/Documentation/sphinx/cdoc.py
@@ -228,8 +228,9 @@ def convert_to_rst(info):
if 'short' in info:
(n, l) = info['short']
l = l[0].capitalize() + l[1:].strip('.')
- l = '\t' + l + '.'
- lst.append((n, l + '\n'))
+ if l[-1] != '?':
+ l = l + '.'
+ lst.append((n, '\t' + l + '\n'))
if 'tags' in info:
for (n, name, l) in info.get('tags', []):
if name != 'return':