diff --git a/modules/yaml/yaml.go b/modules/yaml/yaml.go index aaf6ac426037b..a5c07e873e7ba 100644 --- a/modules/yaml/yaml.go +++ b/modules/yaml/yaml.go @@ -35,13 +35,22 @@ func renderHorizontalHtmlTable(m yaml.MapSlice) string { key := mi.Key value := mi.Value - if key != nil && reflect.TypeOf(key).String() == "yaml.MapSlice" { + switch key.(type) { + case yaml.MapSlice: key = renderHorizontalHtmlTable(key.(yaml.MapSlice)) } thead += fmt.Sprintf("