diff options
author | renahlee <renahlee@outlook.com> | 2023-05-05 16:36:48 -0700 |
---|---|---|
committer | renahlee <renahlee@outlook.com> | 2023-05-05 16:36:48 -0700 |
commit | 2f61fc31fde787364f2593826417396fe8660683 (patch) | |
tree | e555fc3dc375c6ba60fa2e23b360f3d797828aca /src | |
parent | b3b1fa17072478d152dc3c2af55cef0ea9b93023 (diff) | |
download | voidsky-2f61fc31fde787364f2593826417396fe8660683.tar.zst |
Fix hardbreak formatting
Diffstat (limited to 'src')
-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') { |