Merge pull request #81 from liggitt/ascii

Always encode binary data to ascii-escaped strings
This commit is contained in:
Jim Teeuwen 2015-04-02 02:05:19 +02:00
commit f449dcd26c

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