Skip to content

Commit 108bafe

Browse files
committed
Fix extra newline πŸ†•
1 parent 29442f3 commit 108bafe

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

β€Ždist/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -9480,9 +9480,8 @@ function writeReadme(path, content) {
94809480
fs.writeFileSync(path, content);
94819481
}
94829482
function commentToMarkdown(comment) {
9483-
return `> ${comment.text}\n
9484-
> -[@${comment.user}](https://github.com/${comment.user})
9485-
<sup>[src](${comment.url})</sup>`;
9483+
return `> ${comment.text}
9484+
> -[@${comment.user}](https://github.com/${comment.user})`;
94869485
}
94879486
function createGuestbookList(comments) {
94889487
return comments.map(commentToMarkdown).join("\n\n");

β€Žsrc/book.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ function writeReadme(path: string, content: string): void {
1515
}
1616

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

2322
function createGuestbookList(comments: Comment[]): string {

0 commit comments

Comments
 (0)