]> granicus.if.org Git - pdns/commitdiff
changelog-from-pr.py: Fix output indenting
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 16 Feb 2018 15:19:18 +0000 (16:19 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 16 Feb 2018 15:19:18 +0000 (16:19 +0100)
build-scripts/changelog-from-pr.py

index 6b96d49c3a20fc67ba1cc17b41633a4b015d4971..ba6e681d6a2482c3f040590d439b283429ea9c32 100755 (executable)
@@ -32,12 +32,12 @@ for pr in arguments.pullrequest:
         )
     else:
         out += '  .. change::\n' + \
-               '  :tags: XXXXXX\n' + \
-               '  :pullreq: {}\n'.format(pr)
+               '    :tags: XXXXXX\n' + \
+               '    :pullreq: {}\n'.format(pr)
         tickets = re.findall(ticket_regex, pr_info['body'])
         if len(tickets):
-            out += '  :tickets: {}\n'.format(', '.join(tickets))
-        out += '\n  {}'.format(pr_info['title'].capitalize())
+            out += '    :tickets: {}\n'.format(', '.join(tickets))
+        out += '\n    {}'.format(pr_info['title'].capitalize())
 
     if pr_info['user']['login'].lower() not in ['ahupowerdns', 'habbie',
                                                 'pieterlexis', 'rgacogne',