From d3135ed9d3cd2f60e72adf48d8192b9a1124d416 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 24 Jul 2020 22:20:30 +0900 Subject: [PATCH] Update mfm.ts --- src/client/components/mfm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/components/mfm.ts b/src/client/components/mfm.ts index f78947a914..ea3e598c9a 100644 --- a/src/client/components/mfm.ts +++ b/src/client/components/mfm.ts @@ -53,11 +53,11 @@ export default defineComponent({ if (!this.plain) { const x = text.split('\n') - .map(t => t == '' ? [h('br')] : [this._v(t), h('br')]); // NOTE: this._vはHACK SEE: https://github.com/syuilo/misskey/pull/6399#issuecomment-632820283 + .map(t => t == '' ? [h('br')] : [t, h('br')]); x[x.length - 1].pop(); return x; } else { - return [this._v(text.replace(/\n/g, ' '))]; + return [text.replace(/\n/g, ' ')]; } }