Skip to content

Commit

Permalink
fix: extra spaces in contributors and breaking changes (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-ka authored Aug 22, 2023
1 parent 5bfe08e commit 5b68aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function generateMarkDown(
}

if (breakingChanges.length > 0) {
markdown.push("", "#### ⚠️ Breaking Changes", "", ...breakingChanges);
markdown.push("", "#### ⚠️ Breaking Changes", "", ...breakingChanges);
}

const _authors = new Map<string, { email: Set<string>; github?: string }>();
Expand Down Expand Up @@ -80,7 +80,7 @@ export async function generateMarkDown(
if (authors.length > 0) {
markdown.push(
"",
"### " + "❤️ Contributors",
"### " + "❤️ Contributors",
"",
...authors.map((i) => {
const _email = [...i.email].find(
Expand Down
4 changes: 2 additions & 2 deletions test/git.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,11 @@ describe("git", () => {
- **release:** V0.3.4 ([6fc5087](https://github.com/unjs/changelogen/commit/6fc5087))
- **release:** V0.3.5 ([3828bda](https://github.com/unjs/changelogen/commit/3828bda))
#### ⚠️ Breaking Changes
#### ⚠️ Breaking Changes
- **scope:** ⚠️ Breaking change example, close #123 ([#134](https://github.com/unjs/changelogen/pull/134), [#123](https://github.com/unjs/changelogen/issues/123))
### ❤️ Contributors
### ❤️ Contributors
- Pooya Parsa ([@pi0](http://github.com/pi0))"
`);
Expand Down

0 comments on commit 5b68aed

Please sign in to comment.