From 552185ffb4c79228d3a6cc9391910f03449a3418 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Wed, 18 Oct 2017 08:01:38 +0300 Subject: Anki: fixup for note template --- ext/bg/js/options.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 11dab7c2..00e1b5d7 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -269,6 +269,14 @@ function optionsVersion(options) { } options.general.compactTags = false; options.general.compactGlossaries = false; + if (options.anki.fieldTemplates !== optionsFieldTemplates()) { + options.anki.fieldTemplates = '{{#if merge}}\n' + + optionsFieldTemplates() + + '\n{{else}}\n' + + options.anki.fieldTemplates + + '\n{{/if}}'; + + } } ]; -- cgit v1.2.3