summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-12 13:12:30 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-12 13:12:30 -0500
commitd7b7f13132365ffe0762a74662fb68bd01cfc6d8 (patch)
tree6372c48edaef2eec7630ae9e963907bff8d86718
parent414bb721a642670b73ee269ecfc50ffced4aa1f3 (diff)
Trim etymology
-rw-r--r--setup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.go b/setup.go
index 4b4ce91..3636f7d 100644
--- a/setup.go
+++ b/setup.go
@@ -191,7 +191,7 @@ func populateDictionary(dp *dictionaryPopulator) tea.Cmd {
POS: strings.ToLower(result.POS),
}
if len(result.Etymology) > 0 {
- entry.Etymology = result.Etymology[0]
+ entry.Etymology = strings.TrimSpace(result.Etymology[0])
}
if len(result.Sounds) > 0 {
entry.Sound = result.Sounds[0].IPA