mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Fix bug
This commit is contained in:
parent
6d1e727cac
commit
28bb02798c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user