release notes: keep indentation when comparing the grouped lines

An indented "    ### Filer" (a Markdown code block) compared equal to
the script's heading once stripped, so the rewrite turned it into a
heading. Only trailing whitespace is ignored now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-11-17 20:51:58 -08:00
1 parent 19b51cec32
commit a957802c6d
2 files changed
+4 -1

No files matched your search

@@ -211,7 +211,7 @@ def split_notes(body):
end = next((i for i in range(start + 1, len(lines))
if lines[i].startswith(("## ", "**Full Changelog**"))), len(lines))
prs, stray = [], []
block = [l.strip() for l in lines[start + 1:end] if l.strip()]
block = [l.rstrip() for l in lines[start + 1:end] if l.strip()]
for line in lines[start + 1:end]:
if PR_LINE.match(line):
prs.append(line)