diff options
Diffstat (limited to '')
-rw-r--r-- | template.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/template.go b/template.go index 67cd565..ce1127a 100644 --- a/template.go +++ b/template.go @@ -7,8 +7,6 @@ import ( "io/fs" "os" "path" - - "golang.org/x/text/encoding/charmap" ) const verbatimPath = "templates/verbatim" @@ -33,9 +31,7 @@ func writeVerbatimFile(outputDir string, entry fs.DirEntry) error { } defer output.Close() - encodedOutput := charmap.ISO8859_1.NewEncoder().Writer(output) - - if _, err = io.Copy(encodedOutput, input); err != nil { + if _, err = io.Copy(encodedWriter(output), input); err != nil { return fmt.Errorf("writing to '%s': %w", outName, err) } |