From 8ffaf06b72605cb58c47466aae6289243faa58c4 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Sun, 19 Jun 2016 19:45:07 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E8=87=AA=E5=8A=A8=E5=8A=A0=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC=E6=97=B6=E6=9C=89=E4=BA=9B=E6=A0=87=E7=AD=BE=E6=B2=A1?= =?UTF-8?q?=E5=8A=A0=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/translate/cn/translate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/translate/cn/translate.js b/public/translate/cn/translate.js index a88bfb6cbe..bd435a69b4 100644 --- a/public/translate/cn/translate.js +++ b/public/translate/cn/translate.js @@ -66,9 +66,9 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true'; if (!word.replace(/\s/, '')) { return ''; } else if (/<[^>]*>/.test(word)) { - return word; + return ' ' + word + ' '; } else { - return '' + word + ''; + return ' ' + word + ' '; } }); node.innerHTML = text;