mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
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:
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)
|
||||
|
||||
Reference in new issue
Block a user