Skip to content

Commit

Permalink
fix: remove obsolete line breaks (#8)
Browse files Browse the repository at this point in the history
Just removes the obsolete line breaks on changelogs.
  • Loading branch information
mheob authored Oct 20, 2022
1 parent f3cab4c commit a7dabc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .changeset/quick-tables-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ export const getReleaseLine: GetReleaseLine = async (changeset, _type, options)

const suffix = [pull ? `(${pull})` : '', commit ?? '', userLink ?? ''].join(' ');
const suffixedMessage = suffix.trim() ? ` --> ${suffix}` : '';
const futureLinesMessage = futureLines.map((line) => ` ${line}`).join('\n');
const futureLinesMessage = futureLines.map((line) => ` ${line}`).join(' ');

return `\n- ${firstLine}${suffixedMessage}\n${futureLinesMessage}`;
return `\n- ${firstLine}${suffixedMessage}${futureLinesMessage}\n`;
};

const changelogFunctions: ChangelogFunctions = {
Expand Down

0 comments on commit a7dabc4

Please sign in to comment.