Skip to content

Commit aaccd15

Browse files
committed
Dockerfile: use folded block for rule description in docs front matter
Prevously, descriptions containing a colon would result in broken yaml in the front matter of the generated docs. Signed-off-by: David Karlsson <[email protected]>
1 parent 4622a2b commit aaccd15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/dockerfile/linter/generate.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ type Rule struct {
3030

3131
const tmplStr = `---
3232
title: {{ .Rule.Name }}
33-
description: {{ .Rule.Description }}
33+
description: >-
34+
{{ .Rule.Description }}
3435
{{- if .Rule.URLAlias }}
3536
aliases:
3637
- {{ .Rule.URLAlias }}

0 commit comments

Comments
 (0)