french-wiktionary-flashcards

Easily create Anki flashcards from Wiktionary data.
Log | Files | Refs | README

commit d7b7f13132365ffe0762a74662fb68bd01cfc6d8
parent 414bb721a642670b73ee269ecfc50ffced4aa1f3
Author: David Schlachter <t480-debian-git@schlachter.ca>
Date:   Mon, 12 Jan 2026 13:12:30 -0500

Trim etymology

Diffstat:
Msetup.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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