From 0d6546ed447a68161b6fcd0680862e5ccc68d4a0 Mon Sep 17 00:00:00 2001 From: LikeLakers2 <1008889+LikeLakers2@users.noreply.github.com> Date: Tue, 2 Oct 2018 16:37:05 -0400 Subject: [PATCH] Add extra newline after enum members and constants, to ensure they'll format properly after a multi-line description --- doc/tools/makerst.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py index 63a5c8cbbf30..b3d6d32c26e9 100755 --- a/doc/tools/makerst.py +++ b/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')