Merge pull request #265 from Rapptz/patch-1

Proper spacing for Anki in {furigana-plain}
This commit is contained in:
siikamiika 2019-10-24 11:50:21 +03:00 committed by GitHub
commit 43ddffeb7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {