mirror of
				https://github.com/KevinMidboe/motdGO.git
				synced 2025-10-29 17:50:24 +00:00 
			
		
		
		
	Replace all 'L' with '_' for larry3d output
This commit is contained in:
		@@ -51,6 +51,7 @@ func main() {
 | 
			
		||||
 | 
			
		||||
	// Render the string
 | 
			
		||||
	renderStr, err := ascii.RenderOpts(*str, options)
 | 
			
		||||
	formattedStr := strings.ReplaceAll(renderStr, "L", "_")
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		log.Fatal(err)
 | 
			
		||||
	}
 | 
			
		||||
@@ -64,7 +65,7 @@ func main() {
 | 
			
		||||
			log.Fatal(err)
 | 
			
		||||
		}
 | 
			
		||||
		// Write to file
 | 
			
		||||
		b, err := f.WriteString(renderStr)
 | 
			
		||||
		b, err := f.WriteString(formattedStr)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			log.Fatal(err)
 | 
			
		||||
		}
 | 
			
		||||
@@ -73,7 +74,7 @@ func main() {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Default is printing
 | 
			
		||||
	fmt.Print(renderStr)
 | 
			
		||||
	fmt.Print(formattedStr)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Get a slice with colors to give to the RenderOptions
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user