about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOllie H <renahlee@outlook.com>2023-05-05 16:53:12 -0700
committerGitHub <noreply@github.com>2023-05-05 16:53:12 -0700
commit0c604ff1c22a7e12be358fbf5eda6d72259632af (patch)
treee555fc3dc375c6ba60fa2e23b360f3d797828aca
parentb3b1fa17072478d152dc3c2af55cef0ea9b93023 (diff)
parent2f61fc31fde787364f2593826417396fe8660683 (diff)
downloadvoidsky-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.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') {