From dc907cce94ee5d7c77385e4ddb91779a83620937 Mon Sep 17 00:00:00 2001 From: levivannoort Date: Wed, 27 Nov 2024 23:31:49 +0100 Subject: [PATCH] chore: add additional new-line to divide the generated code from the guards --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 1d40c13..c568c6e 100644 --- a/main.go +++ b/main.go @@ -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)