mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 01:30:20 +00:00
Strip white-space from included changelog
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
0e65d2f106
commit
bc45a639d6
1 changed files with 3 additions and 2 deletions
|
@ -247,11 +247,12 @@ def update_release_notes(ctx: Context, salt_version: str, draft: bool = False):
|
|||
wfp.write(changes)
|
||||
try:
|
||||
with open(tmpnotes) as rfp:
|
||||
contents = rfp.read().strip()
|
||||
if draft:
|
||||
ctx.info(rfp.read())
|
||||
ctx.print(contents, soft_wrap=True)
|
||||
else:
|
||||
with open(f"doc/topics/releases/{salt_version}.rst", "w") as wfp:
|
||||
wfp.write(rfp.read())
|
||||
wfp.write(contents)
|
||||
finally:
|
||||
os.remove(tmpnotes)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue