updates
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user