Skip to content

Commit

Permalink
Fix extra newline πŸ†•
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmgross committed Jun 26, 2020
1 parent 29442f3 commit 108bafe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9480,9 +9480,8 @@ function writeReadme(path, content) {
fs.writeFileSync(path, content);
}
function commentToMarkdown(comment) {
return `> ${comment.text}\n
> -[@${comment.user}](https://github.com/${comment.user})
<sup>[src](${comment.url})</sup>`;
return `> ${comment.text}
> -[@${comment.user}](https://github.com/${comment.user})`;
}
function createGuestbookList(comments) {
return comments.map(commentToMarkdown).join("\n\n");
Expand Down
5 changes: 2 additions & 3 deletions src/book.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ function writeReadme(path: string, content: string): void {
}

function commentToMarkdown(comment: Comment): string {
return `> ${comment.text}\n
> -[@${comment.user}](https://github.com/${comment.user})
<sup>[src](${comment.url})</sup>`;
return `> ${comment.text}
> -[@${comment.user}](https://github.com/${comment.user})`;
}

function createGuestbookList(comments: Comment[]): string {
Expand Down

0 comments on commit 108bafe

Please sign in to comment.