From 26914eaba8aac148b6f71e00d9ab4a9ee6ddc345 Mon Sep 17 00:00:00 2001 From: sienori Date: Fri, 8 Jun 2018 20:41:14 +0900 Subject: [PATCH] Fix line break position problem --- simple-translate/translate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simple-translate/translate.js b/simple-translate/translate.js index 915e192..f86400a 100644 --- a/simple-translate/translate.js +++ b/simple-translate/translate.js @@ -64,8 +64,9 @@ class Translate { //翻訳文を取得 for (const response of result.response[0]) { - resultData.resultText += `${response[0]}\n`; + resultData.resultText += response[0]; } + resultData.resultText += '\n'; //訳候補を取得 if (result.response[1]) {