in provider-schema/processors/combine.go [41:64]
func extractDetails(content string) string {
lines := strings.Split(content, "\n")
for i, line := range lines {
if strings.HasPrefix(line, "#") {
lines = lines[i:]
break
}
}
if len(lines) > 0 {
// remove the first line (the resource name)
lines = lines[1:]
}
if len(lines) > 0 {
// remove empty lines at the beginning
curFirstLine := strings.TrimSpace(lines[0])
if curFirstLine == "" || curFirstLine == "\n" {
lines = lines[1:]
}
}
return strings.Join(lines, "\n")
}