Skip to content

Commit

Permalink
chore: add additional new-line to divide the generated code from the …
Browse files Browse the repository at this point in the history
…guards
  • Loading branch information
levivannoort committed Nov 27, 2024
1 parent c035388 commit dc907cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func updateContributors(cfg Configuration, contributors []Contributor, content s
contributorsHTML := generateContributors(cfg, contributors)

if r.MatchString(content) {
content = r.ReplaceAllString(content, fmt.Sprintf("%s\n%s\n%s", guard, contributorsHTML, guard))
content = r.ReplaceAllString(content, fmt.Sprintf("%s\n\n%s\n\n%s", guard, contributorsHTML, guard))
} else {
// todo: possible option to add it to the content regardless of guards
// content += fmt.Sprintf("\n\n%s\n%s\n%s", guard, contributorsHTML, guard)
Expand Down

0 comments on commit dc907cc

Please sign in to comment.