Skip to content

Commit 03f8c5a

Browse files
committed
fix: indenting in release notes script
1 parent aa8faae commit 03f8c5a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

script/release_notes.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ def main():
170170
section_title = format_section_title(label) if label != "Uncategorised" else "Uncategorised"
171171
print(f"## {section_title}\n")
172172
for _, entry in sorted(entries, key=lambda x: x[0]):
173-
print(f"* {entry}\n")
173+
# Split entry into lines and indent all lines after the first
174+
lines = entry.splitlines()
175+
print(f"* {lines[0]}")
176+
for line in lines[1:]:
177+
print(f" {line}")
178+
print() # Empty line after each entry
174179

175180
if __name__ == "__main__":
176181
main()

0 commit comments

Comments
 (0)