Skip to content

Commit

Permalink
Merge pull request #19 from Kuuuube/consistent-extramode
Browse files Browse the repository at this point in the history
Remove needsStructuredContent requirement for extraMode dictionaries
  • Loading branch information
Kuuuube authored Jul 10, 2024
2 parents 6c071bc + cfc51c0 commit 0e3cd67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jmdict_glossary.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func createGlossaryContent(sense jmdict.JmdictSense, meta jmdictMetadata) any {

func createGlossary(sense jmdict.JmdictSense, meta jmdictMetadata) []any {
glossary := []any{}
if meta.extraMode && needsStructuredContent(sense, meta.language) {
if meta.extraMode {
glossary = append(glossary, createGlossaryContent(sense, meta))
} else {
for _, gloss := range sense.Glossary {
Expand Down

0 comments on commit 0e3cd67

Please sign in to comment.