From ced8f7d063f871395224872b6573ca5a9c4f1f72 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 13 Oct 2020 20:43:40 +0200 Subject: [PATCH] Remove comment headings from yaml comments Signed-off-by: kolaente --- magefile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magefile.go b/magefile.go index e096a4820..16592a5d9 100644 --- a/magefile.go +++ b/magefile.go @@ -743,13 +743,13 @@ type configOption struct { func parseYamlConfigNode(node *yaml.Node) (config *configOption) { config = &configOption{ key: node.Value, - description: node.HeadComment, + description: strings.ReplaceAll(node.HeadComment, "# ", ""), } for i, n2 := range node.Content { coo := &configOption{ key: n2.Value, - description: n2.HeadComment, + description: strings.ReplaceAll(n2.HeadComment, "# ", ""), } if i%2 == 0 {