diff options
author | Ollie H <renahlee@outlook.com> | 2023-05-05 16:53:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 16:53:12 -0700 |
commit | 0c604ff1c22a7e12be358fbf5eda6d72259632af (patch) | |
tree | e555fc3dc375c6ba60fa2e23b360f3d797828aca | |
parent | b3b1fa17072478d152dc3c2af55cef0ea9b93023 (diff) | |
parent | 2f61fc31fde787364f2593826417396fe8660683 (diff) | |
download | voidsky-0c604ff1c22a7e12be358fbf5eda6d72259632af.tar.zst |
Merge pull request #593 from bluesky-social/ollie/fix-hardbreak
Fix hardbreak formatting
-rw-r--r-- | src/view/com/composer/text-input/TextInput.web.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx index b56d306e2..245c17b9c 100644 --- a/src/view/com/composer/text-input/TextInput.web.tsx +++ b/src/view/com/composer/text-input/TextInput.web.tsx @@ -140,6 +140,8 @@ function editorJsonToText(json: JSONContent): string { } } text += '\n' + } else if (json.type === 'hardBreak') { + text += '\n' } else if (json.type === 'text') { text += json.text || '' } else if (json.type === 'mention') { |