about summary refs log tree commit diff
path: root/src/view/com/composer/text-input/TextInput.web.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com/composer/text-input/TextInput.web.tsx')
-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') {