Always encode binary data to ascii-escaped strings

pull/4/head
Jordan Liggitt 2015-04-01 15:44:58 -04:00
parent 21f0a65fc5
commit 1d06945605
1 changed files with 1 additions and 1 deletions

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, `)