Skip to content

Commit

Permalink
Dockerfile: quote rule description in generated docs yaml
Browse files Browse the repository at this point in the history
Prevously, descriptions containing a colon would result in broken yaml
in the front matter of the generated docs.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
  • Loading branch information
dvdksn committed Oct 31, 2024
1 parent 4622a2b commit cca874a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/dockerfile/linter/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type Rule struct {

const tmplStr = `---
title: {{ .Rule.Name }}
description: {{ .Rule.Description }}
description: "{{ .Rule.Description }}"
{{- if .Rule.URLAlias }}
aliases:
- {{ .Rule.URLAlias }}
Expand Down

0 comments on commit cca874a

Please sign in to comment.