diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js index 6611e7ac..110fb403 100644 --- a/ext/bg/js/yomichan.js +++ b/ext/bg/js/yomichan.js @@ -24,7 +24,7 @@ class Yomichan { let result = ''; for (const c of options.fn(this)) { if (Translator.isKanji(c)) { - result += Handlebars.templates['kanji-link.html']({kanji: c}); + result += Handlebars.templates['kanji-link.html']({kanji: c}).trim(); } else { result += c; }