Skip to content

Commit

Permalink
Merge pull request #19 from nomoixyz/fix-new-lines
Browse files Browse the repository at this point in the history
fix: add new lines
  • Loading branch information
gnkz authored Jul 21, 2023
2 parents 5be4a68 + 83102d2 commit d126f04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ dist

# TernJS port file
.tern-port

reports/
4 changes: 4 additions & 0 deletions src/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ export class Formatter {
result.push(
`This report was updated on *${this.formatDate(new Date())}*.`
);
result.push("<br/>");
}

const introduction = issues.find(i => i.type === Type.INTRODUCTION);

if (introduction) {
result.push(introduction.body);
result.push("<br/><br/>");
}

const criticalFindings: ParsedIssue[] = [];
Expand Down Expand Up @@ -117,6 +119,7 @@ export class Formatter {
lowFindings.length > 0
) {
result.push(`<h2 align="center">Findings</h2>`);
result.push("<br/>");
}

let counter = 1;
Expand Down Expand Up @@ -205,6 +208,7 @@ export class Formatter {
`### ${index}. ${issue.title}`,
this.issueBadges(issue),
issue.body.replace(/\r/gm, ""),
"<br/><br/>"
].join(`\n\n`);
}

Expand Down

0 comments on commit d126f04

Please sign in to comment.