From 1668cc586a43a5703af703bf280cd542843ddc2f Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 18 Sep 2016 15:57:07 -0700 Subject: [PATCH] Fixing --- edict.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/edict.go b/edict.go index 0aaeb1c..8b1ebd8 100644 --- a/edict.go +++ b/edict.go @@ -58,8 +58,12 @@ func convertEdictEntry(edictEntry jmdict.JmdictEntry) []termSource { continue } - entry := entryBase - entry.Tags = append(entry.Tags, entryBase.Tags...) + entry := termSource{ + Reading: entryBase.Reading, + Expression: entryBase.Expression, + } + + entry.addTags(entryBase.Tags...) for _, glossary := range sense.Glossary { entry.Glossary = append(entry.Glossary, glossary.Content)