From 28bb02798c8150c6ca1f1894f9d37ff4c5d22d73 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 23 Feb 2018 05:15:20 +0900 Subject: [PATCH] Fix bug --- src/web/app/common/views/components/post-html.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/app/common/views/components/post-html.ts b/src/web/app/common/views/components/post-html.ts index 16d670e85..006e32684 100644 --- a/src/web/app/common/views/components/post-html.ts +++ b/src/web/app/common/views/components/post-html.ts @@ -34,7 +34,9 @@ export default Vue.component('mk-post-html', { if ((this as any).shouldBreak) { if (text.indexOf('\n') != -1) { - return text.split('\n').map(t => [createElement('span', t), createElement('br')]); + const x = text.split('\n').map(t => [createElement('span', t), createElement('br')]); + x[x.length - 1].pop(); + return x; } else { return createElement('span', text); }