Remove comment headings from yaml comments
Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
parent
613d1706d8
commit
ced8f7d063
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user