From 7242d28de470955cb4ce097197eccc89bfc80b35 Mon Sep 17 00:00:00 2001 From: David Schlachter Date: Thu, 8 Jan 2026 02:21:24 -0500 Subject: Nicer definition formatting --- setup.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'setup.go') diff --git a/setup.go b/setup.go index 330cadb..2b15acb 100644 --- a/setup.go +++ b/setup.go @@ -91,10 +91,8 @@ func populateDictionary(db *sql.DB) error { tmpl, err := template.New("entry").Parse( `

{{ .Word }} {{ .Sound }} {{ .POS }} {{ .Gender }}

    {{ range .Senses}} -
  1. {{ .Sense }}
    - {{ if .Example }} -
    • {{ .Example }}
  2. - {{ end }} +
  3. {{ .Sense }}
    + {{ if .Example }}
    • {{ .Example }}
  4. {{ end }} {{ end }}
`) if err != nil { panic(err) -- cgit v1.2.3