Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion scripts/consolidate-prerelease-changelog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,13 @@ for (const section of sections.slice(0, 1)) {
for (const group of splitSubsections(pre.body)) {
const existing = groups.find((g) => g.name === group.name);
if (existing) {
existing.entries = [...trimBlank(existing.entries), '', ...trimBlank(group.entries)];
// No separator between the two runs of entries. A blank line inside a
// markdown list ends it, so a separator here rendered every section as
// two lists with a gap down the middle instead of one list.
existing.entries = [
...trimBlank(existing.entries).filter((line) => line.trim() !== ''),
...trimBlank(group.entries).filter((line) => line.trim() !== ''),
];
} else {
groups.push({ name: group.name, entries: trimBlank(group.entries) });
}
Expand Down
Loading