about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorrenahlee <renahlee@outlook.com>2023-05-05 16:36:48 -0700
committerrenahlee <renahlee@outlook.com>2023-05-05 16:36:48 -0700
commit2f61fc31fde787364f2593826417396fe8660683 (patch)
treee555fc3dc375c6ba60fa2e23b360f3d797828aca /src
parentb3b1fa17072478d152dc3c2af55cef0ea9b93023 (diff)
downloadvoidsky-2f61fc31fde787364f2593826417396fe8660683.tar.zst
Fix hardbreak formatting
Diffstat (limited to 'src')
-rw-r--r--src/view/com/composer/text-input/TextInput.web.tsx2
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') {