Skip to content

Conversation

@Kuuuube
Copy link
Member

@Kuuuube Kuuuube commented Nov 29, 2025

When on No grouping, definition.definitions does not exist. definition is a single definition not an object. Normal glossary handlebars already account for this but it got skipped over for glossary-plain.

…resultOutputMode (Result grouping mode) == split (No grouping)
@Kuuuube Kuuuube added the kind/bug The issue or PR is regarding a bug label Nov 29, 2025
@Kuuuube Kuuuube requested a review from a team as a code owner November 29, 2025 18:28
@Kuuuube Kuuuube added the area/anki The issue or PR is related to Anki integration label Nov 29, 2025
@jamesmaa
Copy link
Collaborator

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +138 to +142
{{~#unless (op "&&" selectedDictionary (op "!=" selectedDictionary definition.dictionary))~}}
{{~#unless noDictionaryTag~}}
({{definition.dictionaryAlias}})<br>
{{~/unless~}}
{{#each glossary}}{{{formatGlossaryPlain ../dictionary .}}}{{#unless @last}}<br>{{/unless}}{{/each}}{{#unless @last}}<br>{{/unless}}
{{#each definition.glossary}}{{{formatGlossaryPlain ../definition.dictionary .}}}{{/each}}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Separate glossary items in no-grouping output

In the new glossary-plain branch for the No grouping mode we iterate definition.glossary without adding any separator, so multiple glossary entries are concatenated (e.g., results now render da definition 1da definition 2). The grouped branch still inserts <br> between entries, so the plain output for ungrouped results no longer matches prior formatting and merges senses together when a definition has more than one glossary line.

Useful? React with 👍 / 👎.

@Kuuuube Kuuuube added this pull request to the merge queue Dec 10, 2025
Merged via the queue into yomidevs:master with commit 48ad06b Dec 10, 2025
25 checks passed
@Kuuuube Kuuuube deleted the plain-no-group branch December 10, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/anki The issue or PR is related to Anki integration kind/bug The issue or PR is regarding a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants