diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2017-10-18 08:01:38 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2017-10-18 08:01:38 +0300 |
commit | 552185ffb4c79228d3a6cc9391910f03449a3418 (patch) | |
tree | f22341c9482e845616ba3698f5c3e10755b19873 /ext/bg/js/options.js | |
parent | 966fa2ff7525284c72d2a3f5280bcedee8c211b2 (diff) |
Anki: fixup for note template
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r-- | ext/bg/js/options.js | 8 |
1 files changed, 8 insertions, 0 deletions
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}}'; + + } } ]; |