Always encode binary data to ascii-escaped strings

This commit is contained in:
Jordan Liggitt 2015-04-01 15:44:58 -04:00
parent 21f0a65fc5
commit 1d06945605

View File

@ -346,7 +346,7 @@ func uncompressed_memcopy(w io.Writer, asset *Asset, r io.Reader) error {
if utf8.Valid(b) {
fmt.Fprintf(w, "`%s`", sanitize(b))
} else {
fmt.Fprintf(w, "%q", b)
fmt.Fprintf(w, "%+q", b)
}
_, err = fmt.Fprintf(w, `)