From 2f61fc31fde787364f2593826417396fe8660683 Mon Sep 17 00:00:00 2001
From: renahlee <renahlee@outlook.com>
Date: Fri, 5 May 2023 16:36:48 -0700
Subject: Fix hardbreak formatting

---
 src/view/com/composer/text-input/TextInput.web.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/view/com/composer/text-input/TextInput.web.tsx')

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') {
-- 
cgit 1.4.1

