mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 05:05:42 +01:00
Fix bug
This commit is contained in:
parent
ea125723e3
commit
6510068189
1 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,9 @@ export default Vue.component('mk-post-html', {
|
||||||
|
|
||||||
if ((this as any).shouldBreak) {
|
if ((this as any).shouldBreak) {
|
||||||
if (text.indexOf('\n') != -1) {
|
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 {
|
} else {
|
||||||
return createElement('span', text);
|
return createElement('span', text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue