1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-14 06:38:28 +09:00
This commit is contained in:
syuilo 2018-02-23 05:15:20 +09:00
parent ea125723e3
commit 6510068189

View File

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