Merge pull request #81 from liggitt/ascii

Always encode binary data to ascii-escaped strings
pull/4/head
Jim Teeuwen 2015-04-02 02:05:19 +02:00
commit f449dcd26c
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, `)