Merge pull request #593 from bluesky-social/ollie/fix-hardbreak
Fix hardbreak formatting
This commit is contained in:
commit
0c604ff1c2
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@ function editorJsonToText(json: JSONContent): string {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text += '\n'
|
text += '\n'
|
||||||
|
} else if (json.type === 'hardBreak') {
|
||||||
|
text += '\n'
|
||||||
} else if (json.type === 'text') {
|
} else if (json.type === 'text') {
|
||||||
text += json.text || ''
|
text += json.text || ''
|
||||||
} else if (json.type === 'mention') {
|
} else if (json.type === 'mention') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue