Skip to content

Commit 519e571

Browse files
committed
Improved formatting for changelog generation
1 parent 4916927 commit 519e571

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/create_changelog.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,15 +386,15 @@ def save_to_file(filename, ver, date_of_release):
386386
with open(filename, 'w') as file:
387387
file.write(f"Sage {ver} was released on {date_of_release}. It is available from:\n\n")
388388
file.write(f" * https://www.sagemath.org/download-source.html\n\n")
389-
file.write(f"Sage (http://www.sagemath.org) is developed by volunteers and\n")
390-
file.write(f"combines hundreds of open source packages.\n\n")
391-
file.write(f"The following {len(all_contribs)} people contributed to this release.\n")
392-
file.write(f"Of those, {len(first_contribs)} made their first contribution to Sage:\n\n")
389+
file.write(f"Sage (http://www.sagemath.org) is developed by volunteers and combines\n")
390+
file.write(f"hundreds of open source packages.\n\n")
391+
file.write(f"The following {len(all_contribs)} people contributed to this release. Of those, {len(first_contribs)} made\n")
392+
file.write(f"their first contribution to Sage:\n\n")
393393
max_name_len = max([len(c) for c in all_contribs])
394394
for c in all_contribs:
395-
file.write(f" - {c}{' '*(max_name_len - len(c)) + ' [First Contribution]' if c in first_contribs else ''}\n")
395+
file.write(f" - {c}{' '*(max_name_len - len(c)) + ' [First contribution]' if c in first_contribs else ''}\n")
396396
pr_count = sum([len(all_info[tag]) for tag in all_info])
397-
file.write(f"\n* We merged {pr_count} pull requests in this release.")
397+
file.write(f"\nWe merged {pr_count} pull requests in this release.")
398398
sorted_tags = sorted(all_info.keys(), key=sort_tags)
399399
for tag in sorted_tags:
400400
file.write(f"\n\nMerged in sage-{tag}:\n")

0 commit comments

Comments
 (0)