fix: indenting in release notes script (#7326)

This PR updates the release notes script to better indent PR
descriptions.
This commit is contained in:
Kim Morrison
2025-03-13 10:02:02 +11:00
committed by GitHub
parent a2cb435aa1
commit 1feae7abe1

View File

@@ -170,7 +170,12 @@ def main():
section_title = format_section_title(label) if label != "Uncategorised" else "Uncategorised"
print(f"## {section_title}\n")
for _, entry in sorted(entries, key=lambda x: x[0]):
print(f"* {entry}\n")
# Split entry into lines and indent all lines after the first
lines = entry.splitlines()
print(f"* {lines[0]}")
for line in lines[1:]:
print(f" {line}")
print() # Empty line after each entry
if __name__ == "__main__":
main()