merged mode: remove extra whitespace between terms

This commit is contained in:
siikamiika 2017-10-05 01:06:11 +03:00
parent 69ad4a7c9b
commit 03fd9dcdb4
2 changed files with 2 additions and 3 deletions

View File

@ -296,7 +296,7 @@ templates['terms.html'] = template({"1":function(container,depth0,helpers,partia
stack1 = ((helper = (helper = helpers.kanjiLinks || (depth0 != null ? depth0.kanjiLinks : depth0)) != null ? helper : alias2),(options={"name":"kanjiLinks","hash":{},"fn":container.program(23, data, 0),"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 + "</span>\n "
return buffer + "</span>"
+ ((stack1 = helpers.unless.call(alias1,(data && data.last),{"name":"unless","hash":{},"fn":container.program(26, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "\n </div>\n";
},"23":function(container,depth0,helpers,partials,data) {

View File

@ -43,8 +43,7 @@
{{#if merged}}
{{#each expressions}}
<div class="expression">
<span class="expression-{{jmdictTermFrequency}}">{{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}}</span>
{{#unless @last}}、{{/unless}}
<span class="expression-{{jmdictTermFrequency}}">{{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}}</span>{{#unless @last}}、{{/unless}}
</div>
{{/each}}
{{else}}