summaryrefslogtreecommitdiff
path: root/src/web/app
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-23 05:15:20 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-23 05:15:20 +0900
commit6510068189b4a6bfc65a8761801ca26fdacc36d4 (patch)
tree916ce40d6f9d5c953bb29c67ab2c5a5fdf12d246 /src/web/app
parent:v: (diff)
downloadsharkey-6510068189b4a6bfc65a8761801ca26fdacc36d4.tar.gz
sharkey-6510068189b4a6bfc65a8761801ca26fdacc36d4.tar.bz2
sharkey-6510068189b4a6bfc65a8761801ca26fdacc36d4.zip
Fix bug
Diffstat (limited to 'src/web/app')
-rw-r--r--src/web/app/common/views/components/post-html.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/app/common/views/components/post-html.ts b/src/web/app/common/views/components/post-html.ts
index 16d670e851..006e326849 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);
}