Merge pull request #22298 from LikeLakers2/docs-header-fix

Fix the weird method linking issue when the previous method's description ends with a code block
This commit is contained in:
Rémi Verschelde 2018-09-21 08:04:34 +02:00 committed by GitHub
commit 8e4b18a721
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -673,7 +673,7 @@ def make_rst_class(node):
if methods != None and len(list(methods)) > 0:
f.write(make_heading('Method Descriptions', '-'))
for m in list(methods):
f.write(" .. _class_" + name + "_" + m.attrib['name'] + ":\n\n")
f.write(".. _class_" + name + "_" + m.attrib['name'] + ":\n\n")
make_method(f, name, m, True)
f.write('\n')
d = m.find('description')