From add69c5c81920debb9eb4a53318d603511276145 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 10 Dec 2017 13:27:40 +1300 Subject: [PATCH] pretty up the generated HTML (2) --- ArchiveState.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArchiveState.go b/ArchiveState.go index 2ed3660..37e244f 100644 --- a/ArchiveState.go +++ b/ArchiveState.go @@ -253,18 +253,18 @@ func (this *ArchiveState) renderTemplateHead(w http.ResponseWriter) { for ympair := this.log.EarliestDate(); !ympair.Equals(limit); ympair = ympair.Next() { if ympair.Year != lastY { if lastY != -1 { - w.Write([]byte("\t\t\t\t\n")) + w.Write([]byte("\t\t\t\t\t\n")) } - w.Write([]byte(fmt.Sprintf("\t\t\t\t\n", ympair.Year))) + w.Write([]byte(fmt.Sprintf("\t\t\t\t\t\n", ympair.Year))) lastY = ympair.Year } targetUri := fmt.Sprintf(`/%s/%d/%d`, this.logBestSlug, ympair.Year, ympair.Month) - w.Write([]byte(fmt.Sprintf("\t\t\t\t\t\n", html.EscapeString(targetUri), attr(ympair.Equals(this.ym), " selected"), html.EscapeString(ympair.Month.String())))) + w.Write([]byte(fmt.Sprintf("\t\t\t\t\t\t\n", html.EscapeString(targetUri), attr(ympair.Equals(this.ym), " selected"), html.EscapeString(ympair.Month.String())))) } if lastY != -1 { - w.Write([]byte("\t\t\t\t\n")) + w.Write([]byte("\t\t\t\t\t\n")) } w.Write([]byte(`