fix(playback): Add spacing before code snippets
This commit is contained in:
parent
e26d8dd9b3
commit
7b65b5b237
|
@ -151,6 +151,8 @@ func printCodeSnippet(snippet *chatpb.CodeSnippet) {
|
|||
// Use the in-memory Content field directly.
|
||||
code := snippet.GetContent()
|
||||
language := filepath.Base(snippet.GetFilename()) // Still useful for display
|
||||
|
||||
fmt.Println() // Add extra line feed for spacing
|
||||
fmt.Printf("┌─[ Code Snippet: %s ]──────────────────────────────────\n", language)
|
||||
for _, line := range strings.Split(strings.TrimSpace(code), "\n") {
|
||||
fmt.Printf("│ %s\n", line)
|
||||
|
|
Loading…
Reference in New Issue