fixups: remove redundant options, use template str
This commit is contained in:
parent
27a56dc236
commit
c9b1dd56dc
@ -277,14 +277,14 @@ function optionsVersion(options) {
|
|||||||
} else {
|
} else {
|
||||||
options.general.resultOutputMode = 'split';
|
options.general.resultOutputMode = 'split';
|
||||||
}
|
}
|
||||||
options.general.compactTags = false;
|
|
||||||
options.general.compactGlossaries = false;
|
|
||||||
if (utilStringHashCode(options.anki.fieldTemplates) !== -805327496) { // a3c8508031a1073629803d0616a2ee416cd3cccc
|
if (utilStringHashCode(options.anki.fieldTemplates) !== -805327496) { // a3c8508031a1073629803d0616a2ee416cd3cccc
|
||||||
options.anki.fieldTemplates = '{{#if merge}}\n' +
|
options.anki.fieldTemplates = `
|
||||||
optionsFieldTemplates() +
|
{{#if merge}}
|
||||||
'\n{{else}}\n' +
|
${optionsFieldTemplates()}
|
||||||
options.anki.fieldTemplates +
|
{{else}}
|
||||||
'\n{{/if}}';
|
${options.anki.fieldTemplates}
|
||||||
|
{{/if}}
|
||||||
|
`.trim();
|
||||||
} else {
|
} else {
|
||||||
options.anki.fieldTemplates = optionsFieldTemplates();
|
options.anki.fieldTemplates = optionsFieldTemplates();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user