Browse Source

Add extra newline after enum members and constants, to ensure they'll format properly after a multi-line description

LikeLakers2 7 years ago
parent
commit
0d6546ed44
1 changed files with 2 additions and 4 deletions
  1. 2 4
      doc/tools/makerst.py

+ 2 - 4
doc/tools/makerst.py

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