From 1211969dfc9c4cf2216d4f376d770759cec526a0 Mon Sep 17 00:00:00 2001 From: k1574 Date: Sun, 30 Aug 2020 02:49:33 +0500 Subject: [PATCH] tmpl: no error on characters which are not in template. --- tmpl/tmpl.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmpl/tmpl.go b/tmpl/tmpl.go index 3eead9f..d205470 100644 --- a/tmpl/tmpl.go +++ b/tmpl/tmpl.go @@ -48,9 +48,9 @@ Run(args []string) int { for _, c := range []rune(s) { s, ok := tmpl[c] if !ok { - fmt.Fprintf(os.Stderr, "%s: '%s': no such character in template string\n", - arg0, string(c) ) - continue + /*fmt.Fprintf(os.Stderr, "%s: '%s': no such character in template string\n", + arg0, string(c) )*/ + s = string(c) } fmt.Printf("%s", s) }