diff --git a/modules/common/util/template_util.go b/modules/common/util/template_util.go index a641bb89..f1b00b69 100644 --- a/modules/common/util/template_util.go +++ b/modules/common/util/template_util.go @@ -157,6 +157,8 @@ func ExecuteTemplateData(templateData string, data interface{}) (string, error) "add": add, "lower": lower, } + // remove extra newlines + templateData = strings.ReplaceAll(templateData, "\n\n\n", "") tmpl, err := template.New("tmp").Option("missingkey=error").Funcs(funcs).Parse(templateData) if err != nil { return "", err