summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}