mirror of
https://github.com/godotengine/godot
synced 2024-09-05 07:08:32 +00:00
Add extra newline after enum members and constants, to ensure they'll format properly after a multi-line description
This commit is contained in:
parent
723e2e9654
commit
0d6546ed44
|
@ -610,8 +610,7 @@ def make_rst_class(node):
|
||||||
s += ' = **' + c.attrib['value'] + '**'
|
s += ' = **' + c.attrib['value'] + '**'
|
||||||
if c.text.strip() != '':
|
if c.text.strip() != '':
|
||||||
s += ' --- ' + rstize_text(c.text.strip(), name)
|
s += ' --- ' + rstize_text(c.text.strip(), name)
|
||||||
f.write(s + '\n')
|
f.write(s + '\n\n')
|
||||||
f.write('\n')
|
|
||||||
|
|
||||||
# Constants
|
# Constants
|
||||||
if len(consts) > 0:
|
if len(consts) > 0:
|
||||||
|
@ -623,8 +622,7 @@ def make_rst_class(node):
|
||||||
s += ' = **' + c.attrib['value'] + '**'
|
s += ' = **' + c.attrib['value'] + '**'
|
||||||
if c.text.strip() != '':
|
if c.text.strip() != '':
|
||||||
s += ' --- ' + rstize_text(c.text.strip(), name)
|
s += ' --- ' + rstize_text(c.text.strip(), name)
|
||||||
f.write(s + '\n')
|
f.write(s + '\n\n')
|
||||||
f.write('\n')
|
|
||||||
|
|
||||||
# Class description
|
# Class description
|
||||||
descr = node.find('description')
|
descr = node.find('description')
|
||||||
|
|
Loading…
Reference in a new issue