Replace all 'L' with '_' for larry3d output

This commit is contained in:
2023-08-13 19:36:44 +02:00
parent d6cef5b186
commit 4345368751

View File

@@ -51,6 +51,7 @@ func main() {
// Render the string // Render the string
renderStr, err := ascii.RenderOpts(*str, options) renderStr, err := ascii.RenderOpts(*str, options)
formattedStr := strings.ReplaceAll(renderStr, "L", "_")
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -64,7 +65,7 @@ func main() {
log.Fatal(err) log.Fatal(err)
} }
// Write to file // Write to file
b, err := f.WriteString(renderStr) b, err := f.WriteString(formattedStr)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -73,7 +74,7 @@ func main() {
} }
// Default is printing // Default is printing
fmt.Print(renderStr) fmt.Print(formattedStr)
} }
// Get a slice with colors to give to the RenderOptions // Get a slice with colors to give to the RenderOptions