aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2019-04-25 19:59:43 +0200
committerPřemysl Janouch <p@janouch.name>2019-04-25 19:59:43 +0200
commit5cef6b240ab79314b9382d50bec7ac0a0ba4eff5 (patch)
tree216028601037688b6a2e189c55d2e7e0cdfc3e3e /cmd
parent81927e9017deb911d5d52461317bfad8a0b14406 (diff)
downloadsklad-5cef6b240ab79314b9382d50bec7ac0a0ba4eff5.tar.gz
sklad-5cef6b240ab79314b9382d50bec7ac0a0ba4eff5.tar.xz
sklad-5cef6b240ab79314b9382d50bec7ac0a0ba4eff5.zip
bdf-preview: style corrections
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bdf-preview/main.go32
1 files changed, 16 insertions, 16 deletions
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(`
- <!DOCTYPE html>
- <html><body>
- <table border='1' cellpadding='3' style='border-collapse: collapse'>
- <tr>
- <th>Name</th>
- <th>Preview</th>
- <tr>
-{{range $k, $v := . }}
- <tr>
- <td>{{$k}}</td>
- <td><img src='?name={{$k}}'></td>
- </tr>
-{{end}}
- </table>
- </body></html>
+<!DOCTYPE html>
+<html><body>
+<table border='1' cellpadding='3' style='border-collapse: collapse'>
+ <tr>
+ <th>Name</th>
+ <th>Preview</th>
+ <tr>
+ {{- range $k, $v := . }}
+ <tr>
+ <td>{{ $k }}</td>
+ <td><img src='?name={{ $k }}'></td>
+ </tr>
+ {{- end }}
+</table>
+</body></html>
`))
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))
}