From 6510068189b4a6bfc65a8761801ca26fdacc36d4 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
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);
 						}