From 5cef6b240ab79314b9382d50bec7ac0a0ba4eff5 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Thu, 25 Apr 2019 19:59:43 +0200 Subject: bdf-preview: style corrections --- cmd/bdf-preview/main.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'cmd') diff --git a/cmd/bdf-preview/main.go b/cmd/bdf-preview/main.go index b1f2045..c2edf5c 100644 --- a/cmd/bdf-preview/main.go +++ b/cmd/bdf-preview/main.go @@ -20,21 +20,21 @@ type fontItem struct { var fonts = map[string]fontItem{} var tmpl = template.Must(template.New("list").Parse(` - - - - - - - -{{range $k, $v := . }} - - - - -{{end}} -
NamePreview
{{$k}}
- + + + + + + + + {{- range $k, $v := . }} + + + + + {{- end }} +
NamePreview
{{ $k }}
+ `)) func handle(w http.ResponseWriter, r *http.Request) { @@ -87,7 +87,7 @@ func main() { fonts[filename] = fontItem{Font: font, Preview: img} } - log.Println("Starting server") + log.Println("starting server") http.HandleFunc("/", handle) log.Fatal(http.ListenAndServe(":8080", nil)) } -- cgit v1.2.3-70-g09d2