Proper spacing for Anki in {furigana-plain}

This should fix #264 

Note it does not address broken segmentation, just representation
within Anki itself to work properly.
This commit is contained in:
Danny 2019-10-23 07:46:43 -04:00 committed by GitHub
parent 7a3315d75d
commit aeac7bf2a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,13 +49,13 @@ function handlebarsFuriganaPlain(options) {
let result = ''; let result = '';
for (const seg of segs) { for (const seg of segs) {
if (seg.furigana) { if (seg.furigana) {
result += `${seg.text}[${seg.furigana}]`; result += ` ${seg.text}[${seg.furigana}]`;
} else { } else {
result += seg.text; result += seg.text;
} }
} }
return result; return result.trimLeft();
} }
function handlebarsKanjiLinks(options) { function handlebarsKanjiLinks(options) {