This commit is contained in:
2025-05-24 12:08:37 +02:00
parent 707e87e454
commit b9e3be3c30
4 changed files with 193 additions and 0 deletions

View File

@@ -28,6 +28,13 @@ func NewDiagram(description []byte, imgType string) *Diagram {
fmt.Printf("DEBUG: Now contains newlines: %t\n", strings.Contains(trimmed, "\n"))
}
// Decode pipe separators back to newlines for quadrant charts
if strings.Contains(trimmed, " | ") {
trimmed = strings.ReplaceAll(trimmed, " | ", "\n")
fmt.Printf("DEBUG: After pipe decoding: %q\n", trimmed)
fmt.Printf("DEBUG: Now contains newlines: %t\n", strings.Contains(trimmed, "\n"))
}
return &Diagram{
description: []byte(trimmed),
lastTouched: time.Now(),