summaryrefslogtreecommitdiff
path: root/setup.go
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-08 02:21:24 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-08 02:21:24 -0500
commit7242d28de470955cb4ce097197eccc89bfc80b35 (patch)
tree1d05b4d6de6e05e349520d0c945f7feef93f33d8 /setup.go
parent3c81bbd229bb338addb49b34031e96abcddbbfd0 (diff)
Nicer definition formatting
Diffstat (limited to 'setup.go')
-rw-r--r--setup.go6
1 files changed, 2 insertions, 4 deletions
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(
`<p>{{ .Word }} {{ .Sound }} <i>{{ .POS }} {{ .Gender }}</i></p>
<ol>{{ range .Senses}}
- <li>{{ .Sense }}<br>
- {{ if .Example }}
- <ul><li><i>{{ .Example }}</i></li></ul></li>
- {{ end }}
+ <li class=sense>{{ .Sense }}<br>
+ {{ if .Example }}<ul><li><i>{{ .Example }}</i></li></ul></li>{{ end }}
{{ end }}</ol>`)
if err != nil {
panic(err)