From 209d40be714508dc933184661c0acf3bf1bd6eb8 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 16 Oct 2025 10:30:45 +0200 Subject: [PATCH] Revert "chore(gallery agent): try fixing linting errors" This reverts commit b0eb1ab2a1935f6201e5059d6d5d18c84267eac5. --- .github/gallery-agent/gallery.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/gallery-agent/gallery.go b/.github/gallery-agent/gallery.go index 8788fbf91..07ea725b7 100644 --- a/.github/gallery-agent/gallery.go +++ b/.github/gallery-agent/gallery.go @@ -43,19 +43,7 @@ func generateYAMLEntry(model ProcessedModel, familyAnchor string) string { description = cleanTextContent(description) // Format description for YAML (indent each line and ensure no trailing spaces) - // Handle empty lines properly to avoid spaces-only lines - lines := strings.Split(description, "\n") - var formattedLines []string - for _, line := range lines { - if strings.TrimSpace(line) == "" { - // Empty line - don't add spaces - formattedLines = append(formattedLines, "") - } else { - // Non-empty line - add proper indentation - formattedLines = append(formattedLines, " "+line) - } - } - formattedDescription := strings.Join(formattedLines, "\n") + formattedDescription := strings.ReplaceAll(description, "\n", "\n ") // Remove any trailing spaces from the formatted description formattedDescription = strings.TrimRight(formattedDescription, " \t") yamlTemplate := ""