From c5e6723bfacd82113cfa18109f3fde8ad4eab626 Mon Sep 17 00:00:00 2001 From: Seednode Date: Tue, 13 Jun 2023 19:40:29 -0500 Subject: [PATCH] Added formatting to HTML debug page, for easier reading --- cmd/root.go | 2 +- cmd/web.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 61160d8..2aede75 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -11,7 +11,7 @@ import ( ) const ( - Version string = "0.51.5" + Version string = "0.52.0" ) var ( diff --git a/cmd/web.go b/cmd/web.go index caf429e..47396ba 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -678,19 +678,19 @@ func serveDebugHtml(args []string, index *Index) httprouter.Handle { htmlBody.WriteString(``) htmlBody.WriteString(``) htmlBody.WriteString(``) - htmlBody.WriteString(``) + htmlBody.WriteString(``) htmlBody.WriteString(`Index contains `) htmlBody.WriteString(fileCount) - htmlBody.WriteString(` files`) + htmlBody.WriteString(` files`) for _, v := range indexDump { var shouldSort = "" if sorting { shouldSort = "?sort=asc" } - htmlBody.WriteString(fmt.Sprintf("%s\n", ImagePrefix, v, shouldSort, v)) + htmlBody.WriteString(fmt.Sprintf("\n", ImagePrefix, v, shouldSort, v)) } - htmlBody.WriteString(``) + htmlBody.WriteString(`
%s
`) b, err := io.WriteString(w, gohtml.Format(htmlBody.String())) if err != nil {