فهرست منبع

Fix the weird method linking issue when the previous method's description ends with a code block

LikeLakers2 7 سال پیش
والد
کامیت
268ae71fae
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      doc/tools/makerst.py

+ 1 - 1
doc/tools/makerst.py

@@ -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')