summaryrefslogtreecommitdiff
path: root/setup.go
diff options
context:
space:
mode:
Diffstat (limited to 'setup.go')
-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