Skip to content

Commit

Permalink
Add line break unicode char in debug package description
Browse files Browse the repository at this point in the history
  • Loading branch information
jdel committed Aug 16, 2017
1 parent 48762be commit accd9e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handler/routeSynology.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ func RouteSynology(w http.ResponseWriter, r *http.Request) {

if cfg.GetDebugPackage() == true {
debug := synology.NewDebugPkg(fmt.Sprintf(
"Header: %s, Arch: %s, Major: %s, Minor: %s, Micro: %s, Nano: %s, Build: %s, Timezone: %s, Language: %s, Unique: %s",
// This string cannot be made multiline with backticks
// because raw string literal is UTF-8 encoded
"Header: %s \u000A Arch: %s \u000A Major: %s \u000A Minor: %s \u000A Micro: %s \u000A Nano: %s \u000A Build: %s \u000A Timezone: %s \u000A Language: %s \u000A Unique: %s",
r.Header,
paramArch,
paramMajor,
Expand Down

0 comments on commit accd9e1

Please sign in to comment.