Always encode binary data to ascii-escaped strings
This commit is contained in:
parent
21f0a65fc5
commit
1d06945605
|
@ -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, `)
|
||||
|
|
Loading…
Reference in New Issue
Block a user