From 0c3e10a822fb4de19b5e45a96e90dbd3082c4f7a Mon Sep 17 00:00:00 2001 From: siikamiika Date: Mon, 6 Nov 2017 04:38:01 +0200 Subject: merged mode: remove whitespace between expressions --- ext/bg/js/templates.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/bg/js') diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js index 680ec742..43acd28d 100644 --- a/ext/bg/js/templates.js +++ b/ext/bg/js/templates.js @@ -314,19 +314,19 @@ templates['terms.html'] = template({"1":function(container,depth0,helpers,partia return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.expressions : depth0),{"name":"each","hash":{},"fn":container.program(29, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : ""); },"29":function(container,depth0,helpers,partials,data,blockParams,depths) { var stack1, helper, options, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", buffer = - "
\n "; stack1 = ((helper = (helper = helpers.kanjiLinks || (depth0 != null ? depth0.kanjiLinks : depth0)) != null ? helper : alias2),(options={"name":"kanjiLinks","hash":{},"fn":container.program(30, data, 0, blockParams, depths),"inverse":container.noop,"data":data}),(typeof helper === alias3 ? helper.call(alias1,options) : helper)); if (!helpers.kanjiLinks) { stack1 = helpers.blockHelperMissing.call(depth0,stack1,options)} if (stack1 != null) { buffer += stack1; } - return buffer + "\n
" + return buffer + "
" + ((stack1 = helpers["if"].call(alias1,(depths[1] != null ? depths[1].playback : depths[1]),{"name":"if","hash":{},"fn":container.program(33, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "") + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.termTags : depth0),{"name":"if","hash":{},"fn":container.program(35, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "") + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.frequencies : depth0),{"name":"if","hash":{},"fn":container.program(38, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "") - + "
\n \n
"; + + "\">、
"; },"30":function(container,depth0,helpers,partials,data) { var stack1, helper, options; -- cgit v1.2.3 From 5f6830c7dd88520ebf41c24ab51e2c3240039939 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 8 Nov 2017 17:18:16 -0800 Subject: fixing broken anki template --- ext/bg/js/options.js | 24 +++++++----------------- ext/manifest.json | 2 +- 2 files changed, 8 insertions(+), 18 deletions(-) (limited to 'ext/bg/js') diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 9f1414ad..925c8432 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -19,15 +19,6 @@ function optionsFieldTemplates() { return ` - {{#*inline "glossary-single"}} {{~#unless brief~}} {{~#if definitionTags~}}({{#each definitionTags}}{{name}}{{#unless @last}}, {{/unless}}{{/each}}) {{/if~}} @@ -277,17 +268,16 @@ function optionsVersion(options) { } else { options.general.resultOutputMode = 'split'; } - if (utilStringHashCode(options.anki.fieldTemplates) !== -805327496) { // a3c8508031a1073629803d0616a2ee416cd3cccc - options.anki.fieldTemplates = ` -{{#if merge}} -${optionsFieldTemplates()} -{{else}} -${options.anki.fieldTemplates} -{{/if}} -`.trim(); + if (utilStringHashCode(options.anki.fieldTemplates) !== -805327496) { + options.anki.fieldTemplates = `{{#if merge}}${optionsFieldTemplates()}{{else}}${options.anki.fieldTemplates}{{/if}}`; } else { options.anki.fieldTemplates = optionsFieldTemplates(); } + }, + () => { + if (utilStringHashCode(options.anki.fieldTemplates) === 1285806040) { + options.anki.fieldTemplates = optionsFieldTemplates(); + } } ]; diff --git a/ext/manifest.json b/ext/manifest.json index e415ece9..d75238b1 100644 --- a/ext/manifest.json +++ b/ext/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Yomichan", - "version": "1.5.0", + "version": "1.5.1", "description": "Japanese dictionary with Anki integration", "icons": {"16": "mixed/img/icon16.png", "48": "mixed/img/icon48.png", "128": "mixed/img/icon128.png"}, -- cgit v1.2.3