From 2e9773f70588da14df05c53d76dbeb06a18d5b07 Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Sun, 26 Apr 2020 01:32:08 -0700 Subject: [PATCH] break down footer fprintf to multiple lines --- wrp.go | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/wrp.go b/wrp.go index 6c6e6d2..0d11e44 100644 --- a/wrp.go +++ b/wrp.go @@ -147,9 +147,22 @@ func (w wrpReq) printPage(bgcolor string) { // Status bar below captured image func (w wrpReq) printFooter(h string, s string) { - fmt.Fprintf(w.out, "\n

"+ - "Web Rendering Proxy Version %s | Shutdown WRP | "+ - "Page Height: %s | Img Size: %s\n\n", w.width, w.height, w.scale, w.colors, w.imgType, version, h, s) + fmt.Fprintf(w.out, + "\n

"+ + ""+ + "Web Rendering Proxy Version %s | "+ + "Shutdown WRP | "+ + "Page Height: %s |"+ + "Img Size: %s "+ + "\n\n", + w.width, + w.height, + w.scale, + w.colors, + w.imgType, + version, + h, + s) } // Process HTTP requests to WRP '/' url