Merge pull request #22646 from LikeLakers2/docs-fix-enum-newlines

Add extra newline after enum members and constants, to ensure they'll…
This commit is contained in:
Rémi Verschelde 2018-10-03 00:09:54 +02:00 committed by GitHub
commit 2da6d510bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -610,8 +610,7 @@ def make_rst_class(node):
s += ' = **' + c.attrib['value'] + '**'
if c.text.strip() != '':
s += ' --- ' + rstize_text(c.text.strip(), name)
f.write(s + '\n')
f.write('\n')
f.write(s + '\n\n')
# Constants
if len(consts) > 0:
@ -623,8 +622,7 @@ def make_rst_class(node):
s += ' = **' + c.attrib['value'] + '**'
if c.text.strip() != '':
s += ' --- ' + rstize_text(c.text.strip(), name)
f.write(s + '\n')
f.write('\n')
f.write(s + '\n\n')
# Class description
descr = node.find('description')