Update mfm.ts

This commit is contained in:
syuilo 2020-07-24 22:20:30 +09:00
parent b828df5039
commit d3135ed9d3
1 changed files with 2 additions and 2 deletions

View File

@ -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, ' ')];
}
}