Add Signals descriptions when they exist.
This commit is contained in:
parent
ffe61e63d1
commit
9c7b4c82a7
|
@ -273,6 +273,12 @@ def make_doku_class(node):
|
|||
f.write('\n### Signals \n')
|
||||
for m in list(events):
|
||||
make_method(f, node.attrib['name'], m, True, True)
|
||||
d = m.find('description')
|
||||
if d == None or d.text.strip() == '':
|
||||
continue
|
||||
f.write('\n')
|
||||
f.write(dokuize_text(d.text.strip()))
|
||||
f.write('\n')
|
||||
|
||||
members = node.find('members')
|
||||
|
||||
|
|
|
@ -441,6 +441,12 @@ def make_rst_class(node):
|
|||
f.write(make_heading('Signals', '-'))
|
||||
for m in list(events):
|
||||
make_method(f, node.attrib['name'], m, True, name, True)
|
||||
d = m.find('description')
|
||||
if d == None or d.text.strip() == '':
|
||||
continue
|
||||
f.write(rstize_text(d.text.strip(), name))
|
||||
f.write("\n\n")
|
||||
|
||||
f.write('\n')
|
||||
|
||||
members = node.find('members')
|
||||
|
|
Loading…
Reference in New Issue