aboutsummaryrefslogtreecommitdiff
path: root/ext/data/templates/default-anki-field-templates.handlebars
diff options
context:
space:
mode:
authorpraschke <stel@comfy.monster>2023-10-17 21:52:31 +0100
committerpraschke <stel@comfy.monster>2023-10-17 21:52:31 +0100
commit376a1b096874e601296321fa6307836e2736a05c (patch)
tree5ef7fa6f35f90de6aec2ed5e8091ab28fdba30f8 /ext/data/templates/default-anki-field-templates.handlebars
parentae91e2442d7b3746c633871ff956a8addd7046b5 (diff)
fix: formatGlossary
Diffstat (limited to 'ext/data/templates/default-anki-field-templates.handlebars')
-rw-r--r--ext/data/templates/default-anki-field-templates.handlebars6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/data/templates/default-anki-field-templates.handlebars b/ext/data/templates/default-anki-field-templates.handlebars
index 751236f4..58bc68e2 100644
--- a/ext/data/templates/default-anki-field-templates.handlebars
+++ b/ext/data/templates/default-anki-field-templates.handlebars
@@ -21,11 +21,11 @@
{{~#if only~}}({{#each only}}{{.}}{{#unless @last}}, {{/unless}}{{/each}} only) {{/if~}}
{{~/unless~}}
{{~#if (op "<=" glossary.length 1)~}}
- {{#each glossary}}{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}{{/each}}
+ {{#each glossary}}{{formatGlossary ../dictionary .}}{{/each}}
{{~else if @root.compactGlossaries~}}
- {{#each glossary}}{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}{{#unless @last}} | {{/unless}}{{/each}}
+ {{#each glossary}}{{formatGlossary ../dictionary .}}{{#unless @last}} | {{/unless}}{{/each}}
{{~else~}}
- <ul>{{#each glossary}}<li>{{#formatGlossary ../dictionary}}{{{.}}}{{/formatGlossary}}</li>{{/each}}</ul>
+ <ul>{{#each glossary}}<li>{{formatGlossary ../dictionary .}}</li>{{/each}}</ul>
{{~/if~}}
{{~#set "previousDictionary" dictionary~}}{{~/set~}}
{{/inline}}