aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-10-24 11:50:21 +0300
committerGitHub <noreply@github.com>2019-10-24 11:50:21 +0300
commit43ddffeb7a21df1453df64aaeeffb4debcd9d85f (patch)
tree7bde5b793dd542662533aab97b2be245f81c4822 /ext/bg/js
parent7a3315d75d91e37f69cf23faa0e5b189ad548e52 (diff)
parentaeac7bf2a87c10f01eafb85949633fc7ce17260c (diff)
Merge pull request #265 from Rapptz/patch-1
Proper spacing for Anki in {furigana-plain}
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/handlebars.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/handlebars.js b/ext/bg/js/handlebars.js
index 92764a20..fba437da 100644
--- a/ext/bg/js/handlebars.js
+++ b/ext/bg/js/handlebars.js
@@ -49,13 +49,13 @@ function handlebarsFuriganaPlain(options) {
let result = '';
for (const seg of segs) {
if (seg.furigana) {
- result += `${seg.text}[${seg.furigana}]`;
+ result += ` ${seg.text}[${seg.furigana}]`;
} else {
result += seg.text;
}
}
- return result;
+ return result.trimLeft();
}
function handlebarsKanjiLinks(options) {